home *** CD-ROM | disk | FTP | other *** search
Unknown | 1999-09-16 | 23.1 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Windows Terminal Configuration (other/windowsTerminalConfiguration)
| ext
| Unsupported |
100%
| file
| data
| default
| |
100%
| TrID
| Digital Micrograph Script
| default (weak)
| |
100%
| gt2
| C/C++ Source Code
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 2f 2a 0a 20 2a 20 24 49 | 64 3a 20 6d 08 19 00 9c |/*. * $I|d: m....|
|00000010| 08 19 fe fc 00 04 00 04 | 00 00 ff ff 35 2e 32 2e |........|....5.2.|
|00000020| 34 20 31 39 39 39 2f 30 | 39 2f 31 36 20 31 36 3a |4 1999/0|9/16 16:|
|00000030| 30 35 3a 32 31 20 6c 68 | 65 63 6b 69 6e 67 20 45 |05:21 lh|ecking E|
|00000040| 78 70 20 24 0a 20 2a 2f | 0a 0a 2f 2a 20 47 4e 55 |xp $. */|../* GNU|
|00000050| 50 4c 4f 54 20 2d 20 6d | 65 74 61 70 6f 73 74 2e |PLOT - m|etapost.|
|00000060| 74 72 6d 20 2a 2f 0a 0a | 2f 2a 5b 0a 20 2a 20 43 |trm */..|/*[. * C|
|00000070| 6f 70 79 72 69 67 68 74 | 20 31 39 39 30 20 2d 20 |opyright| 1990 - |
|00000080| 31 39 39 33 2c 20 31 39 | 39 38 0a 20 2a 0a 20 2a |1993, 19|98. *. *|
|00000090| 20 50 65 72 6d 69 73 73 | 69 6f 6e 20 74 6f 20 75 | Permiss|ion to u|
|000000a0| 73 65 2c 20 63 6f 70 79 | 2c 20 61 6e 64 20 64 69 |se, copy|, and di|
|000000b0| 73 74 72 69 62 75 74 65 | 20 74 68 69 73 20 73 6f |stribute| this so|
|000000c0| 66 74 77 61 72 65 20 61 | 6e 64 20 69 74 73 0a 20 |ftware a|nd its. |
|000000d0| 2a 20 64 6f 63 75 6d 65 | 6e 74 61 74 69 6f 6e 20 |* docume|ntation |
|000000e0| 66 6f 72 20 61 6e 79 20 | 70 75 72 70 6f 73 65 20 |for any |purpose |
|000000f0| 77 69 74 68 20 6f 72 20 | 77 69 74 68 6f 75 74 20 |with or |without |
|00000100| 66 65 65 20 69 73 20 68 | 65 72 65 62 79 20 67 72 |fee is h|ereby gr|
|00000110| 61 6e 74 65 64 2c 0a 20 | 2a 20 70 72 6f 76 69 64 |anted,. |* provid|
|00000120| 65 64 20 74 68 61 74 20 | 74 68 65 20 61 62 6f 76 |ed that |the abov|
|00000130| 65 20 63 6f 70 79 72 69 | 67 68 74 20 6e 6f 74 69 |e copyri|ght noti|
|00000140| 63 65 20 61 70 70 65 61 | 72 20 69 6e 20 61 6c 6c |ce appea|r in all|
|00000150| 20 63 6f 70 69 65 73 20 | 61 6e 64 0a 20 2a 20 74 | copies |and. * t|
|00000160| 68 61 74 20 62 6f 74 68 | 20 74 68 61 74 20 63 6f |hat both| that co|
|00000170| 70 79 72 69 67 68 74 20 | 6e 6f 74 69 63 65 20 61 |pyright |notice a|
|00000180| 6e 64 20 74 68 69 73 20 | 70 65 72 6d 69 73 73 69 |nd this |permissi|
|00000190| 6f 6e 20 6e 6f 74 69 63 | 65 20 61 70 70 65 61 72 |on notic|e appear|
|000001a0| 0a 20 2a 20 69 6e 20 73 | 75 70 70 6f 72 74 69 6e |. * in s|upportin|
|000001b0| 67 20 64 6f 63 75 6d 65 | 6e 74 61 74 69 6f 6e 2e |g docume|ntation.|
|000001c0| 0a 20 2a 0a 20 2a 20 50 | 65 72 6d 69 73 73 69 6f |. *. * P|ermissio|
|000001d0| 6e 20 74 6f 20 6d 6f 64 | 69 66 79 20 74 68 65 20 |n to mod|ify the |
|000001e0| 73 6f 66 74 77 61 72 65 | 20 69 73 20 67 72 61 6e |software| is gran|
|000001f0| 74 65 64 2c 20 62 75 74 | 20 6e 6f 74 20 74 68 65 |ted, but| not the|
|00000200| 20 72 69 67 68 74 20 74 | 6f 0a 20 2a 20 64 69 73 | right t|o. * dis|
|00000210| 74 72 69 62 75 74 65 20 | 74 68 65 20 63 6f 6d 70 |tribute |the comp|
|00000220| 6c 65 74 65 20 6d 6f 64 | 69 66 69 65 64 20 73 6f |lete mod|ified so|
|00000230| 75 72 63 65 20 63 6f 64 | 65 2e 20 20 4d 6f 64 69 |urce cod|e. Modi|
|00000240| 66 69 63 61 74 69 6f 6e | 73 20 61 72 65 20 74 6f |fication|s are to|
|00000250| 0a 20 2a 20 62 65 20 64 | 69 73 74 72 69 62 75 74 |. * be d|istribut|
|00000260| 65 64 20 61 73 20 70 61 | 74 63 68 65 73 20 74 6f |ed as pa|tches to|
|00000270| 20 74 68 65 20 72 65 6c | 65 61 73 65 64 20 76 65 | the rel|eased ve|
|00000280| 72 73 69 6f 6e 2e 20 20 | 50 65 72 6d 69 73 73 69 |rsion. |Permissi|
|00000290| 6f 6e 20 74 6f 0a 20 2a | 20 64 69 73 74 72 69 62 |on to. *| distrib|
|000002a0| 75 74 65 20 62 69 6e 61 | 72 69 65 73 20 70 72 6f |ute bina|ries pro|
|000002b0| 64 75 63 65 64 20 62 79 | 20 63 6f 6d 70 69 6c 69 |duced by| compili|
|000002c0| 6e 67 20 6d 6f 64 69 66 | 69 65 64 20 73 6f 75 72 |ng modif|ied sour|
|000002d0| 63 65 73 20 69 73 20 67 | 72 61 6e 74 65 64 2c 0a |ces is g|ranted,.|
|000002e0| 20 2a 20 70 72 6f 76 69 | 64 65 64 20 79 6f 75 0a | * provi|ded you.|
|000002f0| 20 2a 20 20 20 31 2e 20 | 64 69 73 74 72 69 62 75 | * 1. |distribu|
|00000300| 74 65 20 74 68 65 20 63 | 6f 72 72 65 73 70 6f 6e |te the c|orrespon|
|00000310| 64 69 6e 67 20 73 6f 75 | 72 63 65 20 6d 6f 64 69 |ding sou|rce modi|
|00000320| 66 69 63 61 74 69 6f 6e | 73 20 66 72 6f 6d 20 74 |fication|s from t|
|00000330| 68 65 0a 20 2a 20 20 20 | 20 72 65 6c 65 61 73 65 |he. * | release|
|00000340| 64 20 76 65 72 73 69 6f | 6e 20 69 6e 20 74 68 65 |d versio|n in the|
|00000350| 20 66 6f 72 6d 20 6f 66 | 20 61 20 70 61 74 63 68 | form of| a patch|
|00000360| 20 66 69 6c 65 20 61 6c | 6f 6e 67 20 77 69 74 68 | file al|ong with|
|00000370| 20 74 68 65 20 62 69 6e | 61 72 69 65 73 2c 0a 20 | the bin|aries,. |
|00000380| 2a 20 20 20 32 2e 20 61 | 64 64 20 73 70 65 63 69 |* 2. a|dd speci|
|00000390| 61 6c 20 76 65 72 73 69 | 6f 6e 20 69 64 65 6e 74 |al versi|on ident|
|000003a0| 69 66 69 63 61 74 69 6f | 6e 20 74 6f 20 64 69 73 |ificatio|n to dis|
|000003b0| 74 69 6e 67 75 69 73 68 | 20 79 6f 75 72 20 76 65 |tinguish| your ve|
|000003c0| 72 73 69 6f 6e 0a 20 2a | 20 20 20 20 69 6e 20 61 |rsion. *| in a|
|000003d0| 64 64 69 74 69 6f 6e 20 | 74 6f 20 74 68 65 20 62 |ddition |to the b|
|000003e0| 61 73 65 20 72 65 6c 65 | 61 73 65 20 76 65 72 73 |ase rele|ase vers|
|000003f0| 69 6f 6e 20 6e 75 6d 62 | 65 72 2c 0a 20 2a 20 20 |ion numb|er,. * |
|00000400| 20 33 2e 20 70 72 6f 76 | 69 64 65 20 79 6f 75 72 | 3. prov|ide your|
|00000410| 20 6e 61 6d 65 20 61 6e | 64 20 61 64 64 72 65 73 | name an|d addres|
|00000420| 73 20 61 73 20 74 68 65 | 20 70 72 69 6d 61 72 79 |s as the| primary|
|00000430| 20 63 6f 6e 74 61 63 74 | 20 66 6f 72 20 74 68 65 | contact| for the|
|00000440| 0a 20 2a 20 20 20 20 73 | 75 70 70 6f 72 74 20 6f |. * s|upport o|
|00000450| 66 20 79 6f 75 72 20 6d | 6f 64 69 66 69 65 64 20 |f your m|odified |
|00000460| 76 65 72 73 69 6f 6e 2c | 20 61 6e 64 0a 20 2a 20 |version,| and. * |
|00000470| 20 20 34 2e 20 72 65 74 | 61 69 6e 20 6f 75 72 20 | 4. ret|ain our |
|00000480| 63 6f 6e 74 61 63 74 20 | 69 6e 66 6f 72 6d 61 74 |contact |informat|
|00000490| 69 6f 6e 20 69 6e 20 72 | 65 67 61 72 64 20 74 6f |ion in r|egard to|
|000004a0| 20 75 73 65 20 6f 66 20 | 74 68 65 20 62 61 73 65 | use of |the base|
|000004b0| 0a 20 2a 20 20 20 20 73 | 6f 66 74 77 61 72 65 2e |. * s|oftware.|
|000004c0| 0a 20 2a 20 50 65 72 6d | 69 73 73 69 6f 6e 20 74 |. * Perm|ission t|
|000004d0| 6f 20 64 69 73 74 72 69 | 62 75 74 65 20 74 68 65 |o distri|bute the|
|000004e0| 20 72 65 6c 65 61 73 65 | 64 20 76 65 72 73 69 6f | release|d versio|
|000004f0| 6e 20 6f 66 20 74 68 65 | 20 73 6f 75 72 63 65 20 |n of the| source |
|00000500| 63 6f 64 65 20 61 6c 6f | 6e 67 0a 20 2a 20 77 69 |code alo|ng. * wi|
|00000510| 74 68 20 63 6f 72 72 65 | 73 70 6f 6e 64 69 6e 67 |th corre|sponding|
|00000520| 20 73 6f 75 72 63 65 20 | 6d 6f 64 69 66 69 63 61 | source |modifica|
|00000530| 74 69 6f 6e 73 20 69 6e | 20 74 68 65 20 66 6f 72 |tions in| the for|
|00000540| 6d 20 6f 66 20 61 20 70 | 61 74 63 68 20 66 69 6c |m of a p|atch fil|
|00000550| 65 20 69 73 0a 20 2a 20 | 67 72 61 6e 74 65 64 20 |e is. * |granted |
|00000560| 77 69 74 68 20 73 61 6d | 65 20 70 72 6f 76 69 73 |with sam|e provis|
|00000570| 69 6f 6e 73 20 32 20 74 | 68 72 6f 75 67 68 20 34 |ions 2 t|hrough 4|
|00000580| 20 66 6f 72 20 62 69 6e | 61 72 79 20 64 69 73 74 | for bin|ary dist|
|00000590| 72 69 62 75 74 69 6f 6e | 73 2e 0a 20 2a 0a 20 2a |ribution|s.. *. *|
|000005a0| 20 54 68 69 73 20 73 6f | 66 74 77 61 72 65 20 69 | This so|ftware i|
|000005b0| 73 20 70 72 6f 76 69 64 | 65 64 20 22 61 73 20 69 |s provid|ed "as i|
|000005c0| 73 22 20 77 69 74 68 6f | 75 74 20 65 78 70 72 65 |s" witho|ut expre|
|000005d0| 73 73 20 6f 72 20 69 6d | 70 6c 69 65 64 20 77 61 |ss or im|plied wa|
|000005e0| 72 72 61 6e 74 79 0a 20 | 2a 20 74 6f 20 74 68 65 |rranty. |* to the|
|000005f0| 20 65 78 74 65 6e 74 20 | 70 65 72 6d 69 74 74 65 | extent |permitte|
|00000600| 64 20 62 79 20 61 70 70 | 6c 69 63 61 62 6c 65 20 |d by app|licable |
|00000610| 6c 61 77 2e 0a 5d 2a 2f | 0a 0a 2f 2a 20 31 39 39 |law..]*/|../* 199|
|00000620| 39 2f 30 34 2f 32 32 0a | 20 2a 09 09 09 47 4e 55 |9/04/22.| *...GNU|
|00000630| 50 4c 4f 54 20 2d 2d 20 | 6d 65 74 61 70 6f 73 74 |PLOT -- |metapost|
|00000640| 2e 74 72 6d 0a 20 2a 0a | 20 2a 09 09 09 54 68 69 |.trm. *.| *...Thi|
|00000650| 73 20 74 65 72 6d 69 6e | 61 6c 20 64 72 69 76 65 |s termin|al drive|
|00000660| 72 20 73 75 70 70 6f 72 | 74 73 3a 0a 20 2a 09 09 |r suppor|ts:. *..|
|00000670| 20 20 20 20 09 09 4d 65 | 74 61 70 6f 73 74 20 43 | ..Me|tapost C|
|00000680| 6f 6d 6d 61 6e 64 73 0a | 20 2a 0a 20 2a 20 42 61 |ommands.| *. * Ba|
|00000690| 73 65 64 20 6f 6e 20 6d | 65 74 61 66 6f 6e 74 2e |sed on m|etafont.|
|000006a0| 74 72 6d 2c 20 77 72 69 | 74 74 65 6e 20 62 79 0a |trm, wri|tten by.|
|000006b0| 20 2a 09 09 50 6c 20 48 | 65 64 6e 65 0a 20 2a 09 | *..Pl H|edne. *.|
|000006c0| 09 54 72 6f 6e 64 68 65 | 69 6d 2c 20 4e 6f 72 77 |.Trondhe|im, Norw|
|000006d0| 61 79 0a 20 2a 09 09 50 | 61 6c 2e 48 65 64 6e 65 |ay. *..P|al.Hedne|
|000006e0| 40 74 65 72 6d 6f 2e 75 | 6e 69 74 2e 6e 6f 3b 0a |@termo.u|nit.no;.|
|000006f0| 20 2a 09 09 77 69 74 68 | 20 69 6d 70 72 6f 76 65 | *..with| improve|
|00000700| 6d 65 6e 74 73 20 62 79 | 20 43 61 72 73 74 65 6e |ments by| Carsten|
|00000710| 20 53 74 65 67 65 72 0a | 20 2a 0a 20 2a 20 61 6e | Steger.| *. * an|
|00000720| 64 20 70 73 74 72 69 63 | 6b 73 2e 74 72 6d 2c 20 |d pstric|ks.trm, |
|00000730| 77 72 69 74 74 65 6e 20 | 62 79 0a 20 2a 09 09 44 |written |by. *..D|
|00000740| 61 76 69 64 20 4b 6f 74 | 7a 20 61 6e 64 20 52 61 |avid Kot|z and Ra|
|00000750| 79 6d 6f 6e 64 20 54 6f | 79 0a 20 2a 0a 20 2a 20 |ymond To|y. *. * |
|00000760| 41 64 61 70 74 65 64 20 | 74 6f 20 6d 65 74 61 70 |Adapted |to metap|
|00000770| 6f 73 74 20 62 79 3a 0a | 20 2a 20 09 09 44 61 6e |ost by:.| * ..Dan|
|00000780| 69 65 6c 20 48 2e 20 4c | 75 65 63 6b 69 6e 67 20 |iel H. L|uecking |
|00000790| 3c 6c 75 65 63 6b 69 6e | 67 40 63 6f 6d 70 2e 75 |<lueckin|g@comp.u|
|000007a0| 61 72 6b 2e 65 64 75 3e | 20 61 6e 64 0a 20 2a 20 |ark.edu>| and. * |
|000007b0| 09 20 09 4c 20 53 72 69 | 6e 69 76 61 73 61 20 4d |. .L Sri|nivasa M|
|000007c0| 6f 68 61 6e 20 3c 6d 6f | 68 61 6e 40 63 68 65 6d |ohan <mo|han@chem|
|000007d0| 65 6e 67 2e 69 69 73 63 | 2e 65 72 6e 65 74 2e 69 |eng.iisc|.ernet.i|
|000007e0| 6e 3e 0a 20 2a 2f 0a 0a | 23 69 6e 63 6c 75 64 65 |n>. */..|#include|
|000007f0| 20 22 64 72 69 76 65 72 | 2e 68 22 0a 0a 23 69 66 | "driver|.h"..#if|
|00000800| 64 65 66 20 54 45 52 4d | 5f 52 45 47 49 53 54 45 |def TERM|_REGISTE|
|00000810| 52 0a 72 65 67 69 73 74 | 65 72 5f 74 65 72 6d 28 |R.regist|er_term(|
|00000820| 6d 70 29 0a 23 65 6e 64 | 69 66 0a 0a 23 69 66 64 |mp).#end|if..#ifd|
|00000830| 65 66 20 54 45 52 4d 5f | 50 52 4f 54 4f 0a 54 45 |ef TERM_|PROTO.TE|
|00000840| 52 4d 5f 50 55 42 4c 49 | 43 20 76 6f 69 64 20 4d |RM_PUBLI|C void M|
|00000850| 50 5f 6f 70 74 69 6f 6e | 73 20 5f 5f 50 52 4f 54 |P_option|s __PROT|
|00000860| 4f 28 28 76 6f 69 64 29 | 29 3b 0a 54 45 52 4d 5f |O((void)|);.TERM_|
|00000870| 50 55 42 4c 49 43 20 76 | 6f 69 64 20 4d 50 5f 69 |PUBLIC v|oid MP_i|
|00000880| 6e 69 74 20 5f 5f 50 52 | 4f 54 4f 28 28 76 6f 69 |nit __PR|OTO((voi|
|00000890| 64 29 29 3b 0a 54 45 52 | 4d 5f 50 55 42 4c 49 43 |d));.TER|M_PUBLIC|
|000008a0| 20 76 6f 69 64 20 4d 50 | 5f 67 72 61 70 68 69 63 | void MP|_graphic|
|000008b0| 73 20 5f 5f 50 52 4f 54 | 4f 28 28 76 6f 69 64 29 |s __PROT|O((void)|
|000008c0| 29 3b 0a 54 45 52 4d 5f | 50 55 42 4c 49 43 20 76 |);.TERM_|PUBLIC v|
|000008d0| 6f 69 64 20 4d 50 5f 74 | 65 78 74 20 5f 5f 50 52 |oid MP_t|ext __PR|
|000008e0| 4f 54 4f 28 28 76 6f 69 | 64 29 29 3b 0a 54 45 52 |OTO((voi|d));.TER|
|000008f0| 4d 5f 50 55 42 4c 49 43 | 20 76 6f 69 64 20 4d 50 |M_PUBLIC| void MP|
|00000900| 5f 6c 69 6e 65 74 79 70 | 65 20 5f 5f 50 52 4f 54 |_linetyp|e __PROT|
|00000910| 4f 28 28 69 6e 74 20 6c | 69 6e 65 74 79 70 65 29 |O((int l|inetype)|
|00000920| 29 3b 0a 54 45 52 4d 5f | 50 55 42 4c 49 43 20 76 |);.TERM_|PUBLIC v|
|00000930| 6f 69 64 20 4d 50 5f 6d | 6f 76 65 20 5f 5f 50 52 |oid MP_m|ove __PR|
|00000940| 4f 54 4f 28 28 75 6e 73 | 69 67 6e 65 64 20 69 6e |OTO((uns|igned in|
|00000950| 74 20 78 2c 20 75 6e 73 | 69 67 6e 65 64 20 69 6e |t x, uns|igned in|
|00000960| 74 20 79 29 29 3b 0a 54 | 45 52 4d 5f 50 55 42 4c |t y));.T|ERM_PUBL|
|00000970| 49 43 20 76 6f 69 64 20 | 4d 50 5f 70 6f 69 6e 74 |IC void |MP_point|
|00000980| 20 5f 5f 50 52 4f 54 4f | 28 28 75 6e 73 69 67 6e | __PROTO|((unsign|
|00000990| 65 64 20 69 6e 74 20 78 | 2c 20 75 6e 73 69 67 6e |ed int x|, unsign|
|000009a0| 65 64 20 69 6e 74 20 79 | 2c 20 69 6e 74 20 6e 75 |ed int y|, int nu|
|000009b0| 6d 62 65 72 29 29 3b 0a | 54 45 52 4d 5f 50 55 42 |mber));.|TERM_PUB|
|000009c0| 4c 49 43 20 76 6f 69 64 | 20 4d 50 5f 70 6f 69 6e |LIC void| MP_poin|
|000009d0| 74 73 69 7a 65 20 5f 5f | 50 52 4f 54 4f 28 28 64 |tsize __|PROTO((d|
|000009e0| 6f 75 62 6c 65 20 73 69 | 7a 65 29 29 3b 0a 54 45 |ouble si|ze));.TE|
|000009f0| 52 4d 5f 50 55 42 4c 49 | 43 20 76 6f 69 64 20 4d |RM_PUBLI|C void M|
|00000a00| 50 5f 6c 69 6e 65 77 69 | 64 74 68 20 5f 5f 50 52 |P_linewi|dth __PR|
|00000a10| 4f 54 4f 28 28 64 6f 75 | 62 6c 65 20 77 69 64 74 |OTO((dou|ble widt|
|00000a20| 68 29 29 3b 0a 54 45 52 | 4d 5f 50 55 42 4c 49 43 |h));.TER|M_PUBLIC|
|00000a30| 20 76 6f 69 64 20 4d 50 | 5f 76 65 63 74 6f 72 20 | void MP|_vector |
|00000a40| 5f 5f 50 52 4f 54 4f 28 | 28 75 6e 73 69 67 6e 65 |__PROTO(|(unsigne|
|00000a50| 64 20 69 6e 74 20 75 78 | 2c 20 75 6e 73 69 67 6e |d int ux|, unsign|
|00000a60| 65 64 20 69 6e 74 20 75 | 79 29 29 3b 0a 54 45 52 |ed int u|y));.TER|
|00000a70| 4d 5f 50 55 42 4c 49 43 | 20 76 6f 69 64 20 4d 50 |M_PUBLIC| void MP|
|00000a80| 5f 61 72 72 6f 77 20 5f | 5f 50 52 4f 54 4f 28 28 |_arrow _|_PROTO((|
|00000a90| 75 6e 73 69 67 6e 65 64 | 20 69 6e 74 20 73 78 2c |unsigned| int sx,|
|00000aa0| 20 75 6e 73 69 67 6e 65 | 64 20 69 6e 74 20 73 79 | unsigne|d int sy|
|00000ab0| 2c 0a 09 09 09 09 20 20 | 20 75 6e 73 69 67 6e 65 |,..... | unsigne|
|00000ac0| 64 20 69 6e 74 20 65 78 | 2c 20 75 6e 73 69 67 6e |d int ex|, unsign|
|00000ad0| 65 64 20 69 6e 74 20 65 | 79 2c 0a 09 09 09 09 20 |ed int e|y,..... |
|00000ae0| 20 20 54 42 4f 4f 4c 45 | 41 4e 20 68 65 61 64 29 | TBOOLE|AN head)|
|00000af0| 29 3b 0a 54 45 52 4d 5f | 50 55 42 4c 49 43 20 76 |);.TERM_|PUBLIC v|
|00000b00| 6f 69 64 20 4d 50 5f 70 | 75 74 5f 74 65 78 74 20 |oid MP_p|ut_text |
|00000b10| 5f 5f 50 52 4f 54 4f 28 | 28 75 6e 73 69 67 6e 65 |__PROTO(|(unsigne|
|00000b20| 64 20 69 6e 74 20 78 2c | 20 75 6e 73 69 67 6e 65 |d int x,| unsigne|
|00000b30| 64 20 69 6e 74 20 79 2c | 20 63 68 61 72 20 73 74 |d int y,| char st|
|00000b40| 72 5b 5d 29 29 3b 0a 54 | 45 52 4d 5f 50 55 42 4c |r[]));.T|ERM_PUBL|
|00000b50| 49 43 20 69 6e 74 20 4d | 50 5f 6a 75 73 74 69 66 |IC int M|P_justif|
|00000b60| 79 5f 74 65 78 74 20 5f | 5f 50 52 4f 54 4f 28 28 |y_text _|_PROTO((|
|00000b70| 65 6e 75 6d 20 4a 55 53 | 54 49 46 59 20 6d 6f 64 |enum JUS|TIFY mod|
|00000b80| 65 29 29 3b 0a 54 45 52 | 4d 5f 50 55 42 4c 49 43 |e));.TER|M_PUBLIC|
|00000b90| 20 69 6e 74 20 4d 50 5f | 74 65 78 74 5f 61 6e 67 | int MP_|text_ang|
|00000ba0| 6c 65 20 5f 5f 50 52 4f | 54 4f 28 28 69 6e 74 20 |le __PRO|TO((int |
|00000bb0| 61 6e 67 29 29 3b 0a 54 | 45 52 4d 5f 50 55 42 4c |ang));.T|ERM_PUBL|
|00000bc0| 49 43 20 76 6f 69 64 20 | 4d 50 5f 72 65 73 65 74 |IC void |MP_reset|
|00000bd0| 20 5f 5f 50 52 4f 54 4f | 28 28 76 6f 69 64 29 29 | __PROTO|((void))|
|00000be0| 3b 0a 54 45 52 4d 5f 50 | 55 42 4c 49 43 20 69 6e |;.TERM_P|UBLIC in|
|00000bf0| 74 20 4d 50 5f 73 65 74 | 5f 66 6f 6e 74 20 5f 5f |t MP_set|_font __|
|00000c00| 50 52 4f 54 4f 28 28 63 | 68 61 72 20 2a 66 6f 6e |PROTO((c|har *fon|
|00000c10| 74 29 29 3b 0a 54 45 52 | 4d 5f 50 55 42 4c 49 43 |t));.TER|M_PUBLIC|
|00000c20| 20 76 6f 69 64 20 4d 50 | 5f 62 6f 78 66 69 6c 6c | void MP|_boxfill|
|00000c30| 20 5f 5f 50 52 4f 54 4f | 28 28 69 6e 74 20 73 74 | __PROTO|((int st|
|00000c40| 79 6c 65 2c 0a 09 09 09 | 09 20 20 20 20 20 75 6e |yle,....|. un|
|00000c50| 73 69 67 6e 65 64 20 69 | 6e 74 20 78 31 2c 20 75 |signed i|nt x1, u|
|00000c60| 6e 73 69 67 6e 65 64 20 | 69 6e 74 20 79 31 2c 0a |nsigned |int y1,.|
|00000c70| 09 09 09 09 20 20 20 20 | 20 75 6e 73 69 67 6e 65 |.... | unsigne|
|00000c80| 64 20 69 6e 74 20 77 69 | 64 74 68 2c 20 75 6e 73 |d int wi|dth, uns|
|00000c90| 69 67 6e 65 64 20 69 6e | 74 20 68 65 69 67 68 74 |igned in|t height|
|00000ca0| 29 29 3b 0a 0a 2f 2a 20 | 35 20 69 6e 63 68 65 73 |));../* |5 inches|
|00000cb0| 20 77 69 64 65 20 62 79 | 20 33 20 69 6e 63 68 65 | wide by| 3 inche|
|00000cc0| 73 20 68 69 67 68 20 28 | 64 65 66 61 75 6c 74 29 |s high (|default)|
|00000cd0| 20 2a 2f 0a 23 64 65 66 | 69 6e 65 20 4d 50 5f 58 | */.#def|ine MP_X|
|00000ce0| 53 49 5a 45 20 35 2e 30 | 0a 23 64 65 66 69 6e 65 |SIZE 5.0|.#define|
|00000cf0| 20 4d 50 5f 59 53 49 5a | 45 20 33 2e 30 0a 0a 2f | MP_YSIZ|E 3.0../|
|00000d00| 2a 20 67 6e 75 70 6c 6f | 74 20 75 6e 69 74 73 20 |* gnuplo|t units |
|00000d10| 77 69 6c 6c 20 62 65 20 | 6f 6e 65 20 70 69 78 65 |will be |one pixe|
|00000d20| 6c 20 69 66 20 70 72 69 | 6e 74 69 6e 67 20 64 65 |l if pri|nting de|
|00000d30| 76 69 63 65 20 68 61 73 | 20 74 68 69 73 0a 20 20 |vice has| this. |
|00000d40| 20 72 65 73 6f 6c 75 74 | 69 6f 6e 20 2a 2f 0a 23 | resolut|ion */.#|
|00000d50| 64 65 66 69 6e 65 20 4d | 50 5f 44 50 49 20 28 33 |define M|P_DPI (3|
|00000d60| 30 30 29 0a 0a 23 64 65 | 66 69 6e 65 20 4d 50 5f |00)..#de|fine MP_|
|00000d70| 58 4d 41 58 20 28 4d 50 | 5f 58 53 49 5a 45 2a 4d |XMAX (MP|_XSIZE*M|
|00000d80| 50 5f 44 50 49 29 0a 23 | 64 65 66 69 6e 65 20 4d |P_DPI).#|define M|
|00000d90| 50 5f 59 4d 41 58 20 28 | 4d 50 5f 59 53 49 5a 45 |P_YMAX (|MP_YSIZE|
|00000da0| 2a 4d 50 5f 44 50 49 29 | 0a 0a 23 64 65 66 69 6e |*MP_DPI)|..#defin|
|00000db0| 65 20 4d 50 5f 48 54 49 | 43 20 28 35 2a 4d 50 5f |e MP_HTI|C (5*MP_|
|00000dc0| 44 50 49 2f 37 32 29 09 | 2f 2a 20 6e 6f 6d 69 6e |DPI/72).|/* nomin|
|00000dd0| 61 6c 6c 79 20 35 70 74 | 20 20 20 2a 2f 0a 23 64 |ally 5pt| */.#d|
|00000de0| 65 66 69 6e 65 20 4d 50 | 5f 56 54 49 43 20 28 35 |efine MP|_VTIC (5|
|00000df0| 2a 4d 50 5f 44 50 49 2f | 37 32 29 09 2f 2a 20 20 |*MP_DPI/|72)./* |
|00000e00| 20 20 22 20 20 20 20 20 | 20 35 70 74 20 20 20 2a | " | 5pt *|
|00000e10| 2f 0a 23 64 65 66 69 6e | 65 20 4d 50 5f 48 43 48 |/.#defin|e MP_HCH|
|00000e20| 41 52 20 28 4d 50 5f 44 | 50 49 2a 35 33 2f 31 30 |AR (MP_D|PI*53/10|
|00000e30| 2f 37 32 29 09 2f 2a 20 | 20 20 20 22 20 20 20 20 |/72)./* | " |
|00000e40| 20 20 35 2e 33 70 74 20 | 2a 2f 0a 23 64 65 66 69 | 5.3pt |*/.#defi|
|00000e50| 6e 65 20 4d 50 5f 56 43 | 48 41 52 20 28 4d 50 5f |ne MP_VC|HAR (MP_|
|00000e60| 44 50 49 2a 31 31 2f 37 | 32 29 09 2f 2a 20 20 20 |DPI*11/7|2)./* |
|00000e70| 20 22 20 20 20 20 20 20 | 31 31 70 74 20 20 2a 2f | " |11pt */|
|00000e80| 0a 23 65 6e 64 69 66 20 | 2f 2a 20 54 45 52 4d 5f |.#endif |/* TERM_|
|00000e90| 50 52 4f 54 4f 20 2a 2f | 0a 0a 23 69 66 6e 64 65 |PROTO */|..#ifnde|
|00000ea0| 66 20 54 45 52 4d 5f 50 | 52 4f 54 4f 5f 4f 4e 4c |f TERM_P|ROTO_ONL|
|00000eb0| 59 0a 23 69 66 64 65 66 | 20 54 45 52 4d 5f 42 4f |Y.#ifdef| TERM_BO|
|00000ec0| 44 59 0a 0a 73 74 61 74 | 69 63 20 64 6f 75 62 6c |DY..stat|ic doubl|
|00000ed0| 65 20 4d 50 5f 78 73 69 | 7a 65 20 3d 20 4d 50 5f |e MP_xsi|ze = MP_|
|00000ee0| 58 53 49 5a 45 3b 0a 73 | 74 61 74 69 63 20 64 6f |XSIZE;.s|tatic do|
|00000ef0| 75 62 6c 65 20 4d 50 5f | 79 73 69 7a 65 20 3d 20 |uble MP_|ysize = |
|00000f00| 4d 50 5f 59 53 49 5a 45 | 3b 0a 2f 2a 20 73 74 61 |MP_YSIZE|;./* sta|
|00000f10| 74 69 63 20 64 6f 75 62 | 6c 65 20 4d 50 5f 78 6d |tic doub|le MP_xm|
|00000f20| 61 78 20 3d 20 4d 50 5f | 58 4d 41 58 3b 0a 20 20 |ax = MP_|XMAX;. |
|00000f30| 20 73 74 61 74 69 63 20 | 64 6f 75 62 6c 65 20 4d | static |double M|
|00000f40| 50 5f 79 6d 61 78 20 3d | 20 4d 50 5f 59 4d 41 58 |P_ymax =| MP_YMAX|
|00000f50| 3b 0a 20 2a 20 75 6e 75 | 73 65 64 2c 20 66 6f 72 |;. * unu|sed, for|
|00000f60| 20 6e 6f 77 0a 20 2a 2f | 0a 73 74 61 74 69 63 20 | now. */|.static |
|00000f70| 69 6e 74 20 4d 50 5f 70 | 6f 73 78 3b 0a 73 74 61 |int MP_p|osx;.sta|
|00000f80| 74 69 63 20 69 6e 74 20 | 4d 50 5f 70 6f 73 79 3b |tic int |MP_posy;|
|00000f90| 0a 73 74 61 74 69 63 20 | 63 68 61 72 20 4d 50 5f |.static |char MP_|
|00000fa0| 66 6f 6e 74 6e 61 6d 65 | 5b 4d 41 58 5f 49 44 5f |fontname|[MAX_ID_|
|00000fb0| 4c 45 4e 20 2b 20 31 5d | 3b 0a 73 74 61 74 69 63 |LEN + 1]|;.static|
|00000fc0| 20 64 6f 75 62 6c 65 20 | 4d 50 5f 66 6f 6e 74 73 | double |MP_fonts|
|00000fd0| 69 7a 65 3b 0a 73 74 61 | 74 69 63 20 64 6f 75 62 |ize;.sta|tic doub|
|00000fe0| 6c 65 20 4d 50 5f 74 65 | 78 74 6d 61 67 3b 0a 65 |le MP_te|xtmag;.e|
|00000ff0| 6e 75 6d 20 4a 55 53 54 | 49 46 59 20 4d 50 5f 6a |num JUST|IFY MP_j|
|00001000| 75 73 74 69 66 79 20 3d | 20 4c 45 46 54 3b 0a 73 |ustify =| LEFT;.s|
|00001010| 74 61 74 69 63 20 69 6e | 74 20 4d 50 5f 61 6e 67 |tatic in|t MP_ang|
|00001020| 20 3d 20 30 3b 0a 73 74 | 61 74 69 63 20 69 6e 74 | = 0;.st|atic int|
|00001030| 20 4d 50 5f 63 68 61 72 | 5f 63 6f 64 65 20 3d 20 | MP_char|_code = |
|00001040| 30 3b 0a 0a 2f 2a 20 6e | 75 6d 62 65 72 20 6f 66 |0;../* n|umber of|
|00001050| 20 6e 6f 64 65 73 20 69 | 6e 20 61 6e 20 6f 75 74 | nodes i|n an out|
|00001060| 70 75 74 20 6c 69 6e 65 | 20 73 6f 20 66 61 72 20 |put line| so far |
|00001070| 2a 2f 0a 73 74 61 74 69 | 63 20 69 6e 74 20 4d 50 |*/.stati|c int MP|
|00001080| 5f 6c 69 6e 65 63 6f 75 | 6e 74 20 3d 20 31 3b 0a |_linecou|nt = 1;.|
|00001090| 0a 2f 2a 20 4e 75 6d 62 | 65 72 20 6f 66 20 70 6f |./* Numb|er of po|
|000010a0| 69 6e 74 20 74 79 70 65 | 73 20 2a 2f 0a 23 64 65 |int type|s */.#de|
|000010b0| 66 69 6e 65 20 4d 50 5f | 50 4f 49 4e 54 5f 54 59 |fine MP_|POINT_TY|
|000010c0| 50 45 53 20 31 30 0a 0a | 2f 2a 20 4e 75 6d 62 65 |PES 10..|/* Numbe|
|000010d0| 72 20 6f 66 20 6c 69 6e | 65 20 74 79 70 65 73 20 |r of lin|e types |
|000010e0| 2a 2f 0a 23 64 65 66 69 | 6e 65 20 4d 50 5f 4c 49 |*/.#defi|ne MP_LI|
|000010f0| 4e 45 5f 54 59 50 45 53 | 20 38 0a 0a 2f 2a 20 61 |NE_TYPES| 8../* a|
|00001100| 72 65 20 77 65 20 69 6e | 20 74 68 65 20 6d 69 64 |re we in| the mid|
|00001110| 64 6c 65 20 6f 66 20 61 | 20 4d 50 20 70 61 74 68 |dle of a| MP path|
|00001120| 3f 20 2a 2f 0a 73 74 61 | 74 69 63 20 54 42 4f 4f |? */.sta|tic TBOO|
|00001130| 4c 45 41 4e 20 4d 50 5f | 69 6e 6c 69 6e 65 20 3d |LEAN MP_|inline =|
|00001140| 20 46 41 4c 53 45 3b 0a | 2f 2a 20 63 6f 6c 6f 72 | FALSE;.|/* color|
|00001150| 65 64 20 6f 72 20 64 61 | 73 68 65 64 20 6c 69 6e |ed or da|shed lin|
|00001160| 65 73 3f 20 2a 2f 0a 73 | 74 61 74 69 63 20 54 42 |es? */.s|tatic TB|
|00001170| 4f 4f 4c 45 41 4e 20 4d | 50 5f 63 6f 6c 6f 72 20 |OOLEAN M|P_color |
|00001180| 3d 20 46 41 4c 53 45 3b | 0a 73 74 61 74 69 63 20 |= FALSE;|.static |
|00001190| 54 42 4f 4f 4c 45 41 4e | 20 4d 50 5f 73 6f 6c 69 |TBOOLEAN| MP_soli|
|000011a0| 64 20 3d 20 46 41 4c 53 | 45 3b 0a 0a 2f 2a 20 63 |d = FALS|E;../* c|
|000011b0| 6f 6d 70 61 74 61 62 69 | 6c 69 74 79 20 6d 6f 64 |ompatabi|lity mod|
|000011c0| 65 2a 2f 0a 73 74 61 74 | 69 63 20 54 42 4f 4f 4c |e*/.stat|ic TBOOL|
|000011d0| 45 41 4e 20 4d 50 5f 6e | 6f 74 65 78 20 3d 20 46 |EAN MP_n|otex = F|
|000011e0| 41 4c 53 45 3b 0a 0a 2f | 2a 20 68 61 73 20 61 20 |ALSE;../|* has a |
|000011f0| 66 6f 6e 74 20 63 68 61 | 6e 67 65 20 74 61 6b 65 |font cha|nge take|
|00001200| 6e 20 70 6c 61 63 65 3f | 20 2a 2f 0a 73 74 61 74 |n place?| */.stat|
|00001210| 69 63 20 54 42 4f 4f 4c | 45 41 4e 20 4d 50 5f 66 |ic TBOOL|EAN MP_f|
|00001220| 6f 6e 74 63 68 61 6e 67 | 65 64 20 3d 20 46 41 4c |ontchang|ed = FAL|
|00001230| 53 45 3b 0a 0a 2f 2a 20 | 54 68 65 20 6f 6c 64 20 |SE;../* |The old |
|00001240| 74 79 70 65 73 20 2a 2f | 0a 73 74 61 74 69 63 20 |types */|.static |
|00001250| 69 6e 74 20 4d 50 5f 6f | 6c 64 6c 69 6e 65 20 3d |int MP_o|ldline =|
|00001260| 20 2d 32 3b 0a 0a 2f 2a | 20 54 68 65 20 6f 6c 64 | -2;../*| The old|
|00001270| 20 73 69 7a 65 73 20 2a | 2f 0a 73 74 61 74 69 63 | sizes *|/.static|
|00001280| 20 64 6f 75 62 6c 65 20 | 4d 50 5f 6f 6c 64 70 74 | double |MP_oldpt|
|00001290| 73 69 7a 65 20 3d 20 31 | 2e 30 3b 0a 73 74 61 74 |size = 1|.0;.stat|
|000012a0| 69 63 20 64 6f 75 62 6c | 65 20 4d 50 5f 6f 6c 64 |ic doubl|e MP_old|
|000012b0| 70 65 6e 20 3d 20 31 2e | 30 3b 0a 0a 2f 2a 20 74 |pen = 1.|0;../* t|
|000012c0| 65 72 6d 69 6e 61 74 65 | 20 61 6e 79 20 70 61 74 |erminate| any pat|
|000012d0| 68 20 69 6e 20 70 72 6f | 67 72 65 73 73 20 2a 2f |h in pro|gress */|
|000012e0| 0a 73 74 61 74 69 63 20 | 76 6f 69 64 20 4d 50 5f |.static |void MP_|
|000012f0| 65 6e 64 6c 69 6e 65 20 | 5f 5f 50 52 4f 54 4f 28 |endline |__PROTO(|
|00001300| 28 76 6f 69 64 29 29 3b | 0a 0a 2f 2a 20 6d 61 78 |(void));|../* max|
|00001310| 20 6e 75 6d 62 65 72 20 | 6f 66 20 70 61 74 68 20 | number |of path |
|00001320| 6e 6f 64 65 73 20 62 65 | 66 6f 72 65 20 61 20 6e |nodes be|fore a n|
|00001330| 65 77 6c 69 6e 65 20 2a | 2f 0a 23 64 65 66 69 6e |ewline *|/.#defin|
|00001340| 65 20 4d 50 5f 4c 49 4e | 45 4d 41 58 20 35 0a 0a |e MP_LIN|EMAX 5..|
|00001350| 54 45 52 4d 5f 50 55 42 | 4c 49 43 20 76 6f 69 64 |TERM_PUB|LIC void|
|00001360| 0a 4d 50 5f 6f 70 74 69 | 6f 6e 73 28 29 0a 7b 0a |.MP_opti|ons().{.|
|00001370| 20 20 20 20 4d 50 5f 63 | 6f 6c 6f 72 20 3d 20 46 | MP_c|olor = F|
|00001380| 41 4c 53 45 3b 0a 20 20 | 20 20 4d 50 5f 73 6f 6c |ALSE;. | MP_sol|
|00001390| 69 64 20 3d 20 46 41 4c | 53 45 3b 0a 20 20 20 20 |id = FAL|SE;. |
|000013a0| 4d 50 5f 6e 6f 74 65 78 | 20 3d 20 46 41 4c 53 45 |MP_notex| = FALSE|
|000013b0| 3b 0a 20 20 20 20 4d 50 | 5f 66 6f 6e 74 73 69 7a |;. MP|_fontsiz|
|000013c0| 65 20 3d 20 31 30 2e 30 | 3b 0a 20 20 20 20 4d 50 |e = 10.0|;. MP|
|000013d0| 5f 74 65 78 74 6d 61 67 | 20 3d 20 31 2e 30 3b 0a |_textmag| = 1.0;.|
|000013e0| 20 20 20 20 73 74 72 63 | 70 79 28 4d 50 5f 66 6f | strc|py(MP_fo|
|000013f0| 6e 74 6e 61 6d 65 2c 20 | 22 63 6d 72 31 30 22 29 |ntname, |"cmr10")|
|00001400| 3b 0a 20 20 20 20 73 74 | 72 63 70 79 28 64 65 66 |;. st|rcpy(def|
|00001410| 61 75 6c 74 5f 66 6f 6e | 74 2c 20 22 22 29 3b 09 |ault_fon|t, "");.|
|00001420| 2f 2a 20 6f 75 74 70 75 | 74 20 66 69 6c 65 20 77 |/* outpu|t file w|
|00001430| 69 6c 6c 20 73 74 6f 72 | 65 20 64 65 66 61 75 6c |ill stor|e defaul|
|00001440| 74 20 66 6f 6e 74 20 69 | 6e 66 6f 20 2a 2f 0a 20 |t font i|nfo */. |
|00001450| 20 20 20 77 68 69 6c 65 | 20 28 21 45 4e 44 5f 4f | while| (!END_O|
|00001460| 46 5f 43 4f 4d 4d 41 4e | 44 29 20 7b 0a 09 69 66 |F_COMMAN|D) {..if|
|00001470| 20 28 61 6c 6d 6f 73 74 | 5f 65 71 75 61 6c 73 28 | (almost|_equals(|
|00001480| 63 5f 74 6f 6b 65 6e 2c | 20 22 6d 24 6f 6e 6f 63 |c_token,| "m$onoc|
|00001490| 68 72 6f 6d 65 22 29 29 | 20 7b 0a 09 20 20 20 20 |hrome"))| {.. |
|000014a0| 4d 50 5f 63 6f 6c 6f 72 | 20 3d 20 46 41 4c 53 45 |MP_color| = FALSE|
|000014b0| 3b 0a 09 20 20 20 20 63 | 5f 74 6f 6b 65 6e 2b 2b |;.. c|_token++|
|000014c0| 3b 0a 09 20 20 20 20 63 | 6f 6e 74 69 6e 75 65 3b |;.. c|ontinue;|
|000014d0| 0a 09 7d 0a 09 69 66 20 | 28 61 6c 6d 6f 73 74 5f |..}..if |(almost_|
|000014e0| 65 71 75 61 6c 73 28 63 | 5f 74 6f 6b 65 6e 2c 20 |equals(c|_token, |
|000014f0| 22 63 24 6f 6c 6f 72 22 | 29 20 7c 7c 20 61 6c 6d |"c$olor"|) || alm|
|00001500| 6f 73 74 5f 65 71 75 61 | 6c 73 28 63 5f 74 6f 6b |ost_equa|ls(c_tok|
|00001510| 65 6e 2c 20 22 63 24 6f | 6c 6f 75 72 22 29 29 20 |en, "c$o|lour")) |
|00001520| 7b 0a 09 20 20 20 20 4d | 50 5f 63 6f 6c 6f 72 20 |{.. M|P_color |
|00001530| 3d 20 54 52 55 45 3b 0a | 09 20 20 20 20 63 5f 74 |= TRUE;.|. c_t|
|00001540| 6f 6b 65 6e 2b 2b 3b 0a | 09 20 20 20 20 63 6f 6e |oken++;.|. con|
|00001550| 74 69 6e 75 65 3b 0a 09 | 7d 0a 09 69 66 20 28 61 |tinue;..|}..if (a|
|00001560| 6c 6d 6f 73 74 5f 65 71 | 75 61 6c 73 28 63 5f 74 |lmost_eq|uals(c_t|
|00001570| 6f 6b 65 6e 2c 20 22 73 | 24 6f 6c 69 64 22 29 29 |oken, "s|$olid"))|
|00001580| 20 7b 0a 09 20 20 20 20 | 4d 50 5f 73 6f 6c 69 64 | {.. |MP_solid|
|00001590| 20 3d 20 54 52 55 45 3b | 0a 09 20 20 20 20 63 5f | = TRUE;|.. c_|
|000015a0| 74 6f 6b 65 6e 2b 2b 3b | 0a 09 20 20 20 20 63 6f |token++;|.. co|
|000015b0| 6e 74 69 6e 75 65 3b 0a | 09 7d 0a 09 69 66 20 28 |ntinue;.|.}..if (|
|000015c0| 61 6c 6d 6f 73 74 5f 65 | 71 75 61 6c 73 28 63 5f |almost_e|quals(c_|
|000015d0| 74 6f 6b 65 6e 2c 20 22 | 64 61 24 73 68 65 64 22 |token, "|da$shed"|
|000015e0| 29 29 20 7b 0a 09 20 20 | 20 20 4d 50 5f 73 6f 6c |)) {.. | MP_sol|
|000015f0| 69 64 20 3d 20 46 41 4c | 53 45 3b 0a 09 20 20 20 |id = FAL|SE;.. |
|00001600| 20 63 5f 74 6f 6b 65 6e | 2b 2b 3b 0a 09 20 20 20 | c_token|++;.. |
|00001610| 20 63 6f 6e 74 69 6e 75 | 65 3b 0a 09 7d 0a 09 69 | continu|e;..}..i|
|00001620| 66 20 28 61 6c 6d 6f 73 | 74 5f 65 71 75 61 6c 73 |f (almos|t_equals|
|00001630| 28 63 5f 74 6f 6b 65 6e | 2c 20 22 6e 24 6f 74 65 |(c_token|, "n$ote|
|00001640| 78 22 29 29 20 7b 0a 09 | 20 20 20 20 4d 50 5f 6e |x")) {..| MP_n|
|00001650| 6f 74 65 78 20 3d 20 54 | 52 55 45 3b 0a 09 20 20 |otex = T|RUE;.. |
|00001660| 20 20 73 74 72 63 70 79 | 28 4d 50 5f 66 6f 6e 74 | strcpy|(MP_font|
|00001670| 6e 61 6d 65 2c 20 22 70 | 63 72 72 38 72 22 29 3b |name, "p|crr8r");|
|00001680| 0a 09 20 20 20 20 63 5f | 74 6f 6b 65 6e 2b 2b 3b |.. c_|token++;|
|00001690| 0a 09 20 20 20 20 63 6f | 6e 74 69 6e 75 65 3b 0a |.. co|ntinue;.|
|000016a0| 09 7d 0a 09 69 66 20 28 | 61 6c 6d 6f 73 74 5f 65 |.}..if (|almost_e|
|000016b0| 71 75 61 6c 73 28 63 5f | 74 6f 6b 65 6e 2c 20 22 |quals(c_|token, "|
|000016c0| 74 24 65 78 22 29 29 20 | 7b 0a 09 20 20 20 20 4d |t$ex")) |{.. M|
|000016d0| 50 5f 6e 6f 74 65 78 20 | 3d 20 46 41 4c 53 45 3b |P_notex |= FALSE;|
|000016e0| 0a 09 20 20 20 20 63 5f | 74 6f 6b 65 6e 2b 2b 3b |.. c_|token++;|
|000016f0| 0a 09 20 20 20 20 63 6f | 6e 74 69 6e 75 65 3b 0a |.. co|ntinue;.|
|00001700| 09 7d 0a 09 69 66 20 28 | 61 6c 6d 6f 73 74 5f 65 |.}..if (|almost_e|
|00001710| 71 75 61 6c 73 28 63 5f | 74 6f 6b 65 6e 2c 20 22 |quals(c_|token, "|
|00001720| 64 65 24 66 61 75 6c 74 | 22 29 29 20 7b 0a 09 20 |de$fault|")) {.. |
|00001730| 20 20 20 63 5f 74 6f 6b | 65 6e 2b 2b 3b 0a 09 20 | c_tok|en++;.. |
|00001740| 20 20 20 63 6f 6e 74 69 | 6e 75 65 3b 0a 09 7d 0a | conti|nue;..}.|
|00001750| 09 69 66 20 28 61 6c 6d | 6f 73 74 5f 65 71 75 61 |.if (alm|ost_equa|
|00001760| 6c 73 28 63 5f 74 6f 6b | 65 6e 2c 20 22 6d 24 61 |ls(c_tok|en, "m$a|
|00001770| 67 6e 69 66 69 63 61 74 | 69 6f 6e 22 29 29 20 7b |gnificat|ion")) {|
|00001780| 0a 09 20 20 20 20 63 5f | 74 6f 6b 65 6e 2b 2b 3b |.. c_|token++;|
|00001790| 0a 09 20 20 20 20 69 66 | 20 28 21 45 4e 44 5f 4f |.. if| (!END_O|
|000017a0| 46 5f 43 4f 4d 4d 41 4e | 44 29 20 7b 09 2f 2a 20 |F_COMMAN|D) {./* |
|000017b0| 67 6c 6f 62 61 6c 20 74 | 65 78 74 20 73 63 61 6c |global t|ext scal|
|000017c0| 69 6e 67 20 2a 2f 0a 09 | 09 73 74 72 75 63 74 20 |ing */..|.struct |
|000017d0| 76 61 6c 75 65 20 61 3b | 0a 09 09 4d 50 5f 74 65 |value a;|...MP_te|
|000017e0| 78 74 6d 61 67 20 3d 20 | 28 64 6f 75 62 6c 65 29 |xtmag = |(double)|
|000017f0| 20 72 65 61 6c 28 63 6f | 6e 73 74 5f 65 78 70 72 | real(co|nst_expr|
|00001800| 65 73 73 28 26 61 29 29 | 3b 0a 09 20 20 20 20 7d |ess(&a))|;.. }|
|00001810| 0a 09 20 20 20 20 63 5f | 74 6f 6b 65 6e 2b 2b 3b |.. c_|token++;|
|00001820| 0a 09 20 20 20 20 63 6f | 6e 74 69 6e 75 65 3b 0a |.. co|ntinue;.|
|00001830| 09 7d 0a 09 62 72 65 61 | 6b 3b 0a 20 20 20 20 7d |.}..brea|k;. }|
|00001840| 0a 20 20 20 20 69 66 20 | 28 21 45 4e 44 5f 4f 46 |. if |(!END_OF|
|00001850| 5f 43 4f 4d 4d 41 4e 44 | 20 26 26 20 69 73 73 74 |_COMMAND| && isst|
|00001860| 72 69 6e 67 28 63 5f 74 | 6f 6b 65 6e 29 29 20 7b |ring(c_t|oken)) {|
|00001870| 09 09 2f 2a 20 66 6f 6e | 74 20 6e 61 6d 65 20 2a |../* fon|t name *|
|00001880| 2f 0a 09 71 75 6f 74 65 | 5f 73 74 72 28 4d 50 5f |/..quote|_str(MP_|
|00001890| 66 6f 6e 74 6e 61 6d 65 | 2c 20 63 5f 74 6f 6b 65 |fontname|, c_toke|
|000018a0| 6e 2c 20 4d 41 58 5f 49 | 44 5f 4c 45 4e 29 3b 0a |n, MAX_I|D_LEN);.|
|000018b0| 09 63 5f 74 6f 6b 65 6e | 2b 2b 3b 0a 20 20 20 20 |.c_token|++;. |
|000018c0| 7d 0a 20 20 20 20 69 66 | 20 28 21 45 4e 44 5f 4f |}. if| (!END_O|
|000018d0| 46 5f 43 4f 4d 4d 41 4e | 44 29 20 7b 09 2f 2a 66 |F_COMMAN|D) {./*f|
|000018e0| 6f 6e 74 20 73 69 7a 65 | 20 2a 2f 0a 09 73 74 72 |ont size| */..str|
|000018f0| 75 63 74 20 76 61 6c 75 | 65 20 61 3b 0a 09 4d 50 |uct valu|e a;..MP|
|00001900| 5f 66 6f 6e 74 73 69 7a | 65 20 3d 20 28 64 6f 75 |_fontsiz|e = (dou|
|00001910| 62 6c 65 29 20 72 65 61 | 6c 28 63 6f 6e 73 74 5f |ble) rea|l(const_|
|00001920| 65 78 70 72 65 73 73 28 | 26 61 29 29 3b 0a 09 63 |express(|&a));..c|
|00001930| 5f 74 6f 6b 65 6e 2b 2b | 3b 0a 20 20 20 20 7d 0a |_token++|;. }.|
|00001940| 20 20 20 20 2f 2a 20 6d | 69 6e 69 6d 61 6c 20 65 | /* m|inimal e|
|00001950| 72 72 6f 72 20 72 65 63 | 6f 76 65 72 79 3a 20 2a |rror rec|overy: *|
|00001960| 2f 0a 20 20 20 20 69 66 | 20 28 4d 50 5f 66 6f 6e |/. if| (MP_fon|
|00001970| 74 73 69 7a 65 20 3c 20 | 35 2e 30 29 0a 09 4d 50 |tsize < |5.0)..MP|
|00001980| 5f 66 6f 6e 74 73 69 7a | 65 20 3d 20 35 2e 30 3b |_fontsiz|e = 5.0;|
|00001990| 0a 20 20 20 20 69 66 20 | 28 4d 50 5f 66 6f 6e 74 |. if |(MP_font|
|000019a0| 73 69 7a 65 20 3e 20 39 | 39 2e 39 39 29 0a 09 4d |size > 9|9.99)..M|
|000019b0| 50 5f 66 6f 6e 74 73 69 | 7a 65 20 3d 20 39 39 2e |P_fontsi|ze = 99.|
|000019c0| 39 39 3b 0a 0a 20 20 20 | 20 74 65 72 6d 2d 3e 76 |99;.. | term->v|
|000019d0| 5f 63 68 61 72 20 3d 20 | 28 75 6e 73 69 67 6e 65 |_char = |(unsigne|
|000019e0| 64 20 69 6e 74 29 20 28 | 4d 50 5f 44 50 49 20 2a |d int) (|MP_DPI *|
|000019f0| 20 4d 50 5f 66 6f 6e 74 | 73 69 7a 65 20 2a 20 4d | MP_font|size * M|
|00001a00| 50 5f 74 65 78 74 6d 61 | 67 20 2a 20 31 31 20 2f |P_textma|g * 11 /|
|00001a10| 20 37 32 30 29 3b 0a 20 | 20 20 20 69 66 20 28 4d | 720);. | if (M|
|00001a20| 50 5f 6e 6f 74 65 78 29 | 20 7b 09 09 2f 2a 20 43 |P_notex)| {../* C|
|00001a30| 6f 75 72 69 65 72 20 69 | 73 20 61 20 6c 69 74 74 |ourier i|s a litt|
|00001a40| 6c 65 20 77 69 64 65 72 | 20 74 68 61 6e 20 63 6d |le wider| than cm|
|00001a50| 74 74 20 2a 2f 0a 09 74 | 65 72 6d 2d 3e 68 5f 63 |tt */..t|erm->h_c|
|00001a60| 68 61 72 20 3d 20 28 75 | 6e 73 69 67 6e 65 64 20 |har = (u|nsigned |
|00001a70| 69 6e 74 29 20 28 4d 50 | 5f 44 50 49 20 2a 20 4d |int) (MP|_DPI * M|
|00001a80| 50 5f 66 6f 6e 74 73 69 | 7a 65 20 2a 20 4d 50 5f |P_fontsi|ze * MP_|
|00001a90| 74 65 78 74 6d 61 67 20 | 2a 20 36 2e 30 20 2f 20 |textmag |* 6.0 / |
|00001aa0| 37 32 30 20 2b 20 30 2e | 35 29 3b 0a 20 20 20 20 |720 + 0.|5);. |
|00001ab0| 7d 20 65 6c 73 65 20 7b | 0a 09 74 65 72 6d 2d 3e |} else {|..term->|
|00001ac0| 68 5f 63 68 61 72 20 3d | 20 28 75 6e 73 69 67 6e |h_char =| (unsign|
|00001ad0| 65 64 20 69 6e 74 29 20 | 28 4d 50 5f 44 50 49 20 |ed int) |(MP_DPI |
|00001ae0| 2a 20 4d 50 5f 66 6f 6e | 74 73 69 7a 65 20 2a 20 |* MP_fon|tsize * |
|00001af0| 4d 50 5f 74 65 78 74 6d | 61 67 20 2a 20 35 2e 33 |MP_textm|ag * 5.3|
|00001b00| 20 2f 20 37 32 30 20 2b | 20 30 2e 35 29 3b 0a 20 | / 720 +| 0.5);. |
|00001b10| 20 20 20 7d 0a 20 20 20 | 20 73 70 72 69 6e 74 66 | }. | sprintf|
|00001b20| 28 74 65 72 6d 5f 6f 70 | 74 69 6f 6e 73 2c 20 22 |(term_op|tions, "|
|00001b30| 25 73 25 73 25 73 25 73 | 25 36 2e 33 66 20 5c 22 |%s%s%s%s|%6.3f \"|
|00001b40| 25 73 5c 22 20 25 35 2e | 32 66 22 2c 0a 09 20 20 |%s\" %5.|2f",.. |
|00001b50| 20 20 4d 50 5f 63 6f 6c | 6f 72 20 3f 20 22 63 6f | MP_col|or ? "co|
|00001b60| 6c 6f 72 20 22 20 3a 20 | 22 22 2c 20 4d 50 5f 73 |lor " : |"", MP_s|
|00001b70| 6f 6c 69 64 20 3f 20 22 | 73 6f 6c 69 64 20 22 20 |olid ? "|solid " |
|00001b80| 3a 20 22 22 2c 0a 09 20 | 20 20 20 4d 50 5f 6e 6f |: "",.. | MP_no|
|00001b90| 74 65 78 20 3f 20 22 6e | 6f 74 65 78 20 22 20 3a |tex ? "n|otex " :|
|00001ba0| 20 22 22 2c 20 22 6d 61 | 67 20 22 2c 0a 09 20 20 | "", "ma|g ",.. |
|00001bb0| 20 20 4d 50 5f 74 65 78 | 74 6d 61 67 2c 20 4d 50 | MP_tex|tmag, MP|
|00001bc0| 5f 66 6f 6e 74 6e 61 6d | 65 2c 20 4d 50 5f 66 6f |_fontnam|e, MP_fo|
|00001bd0| 6e 74 73 69 7a 65 29 3b | 0a 7d 0a 0a 54 45 52 4d |ntsize);|.}..TERM|
|00001be0| 5f 50 55 42 4c 49 43 20 | 76 6f 69 64 0a 4d 50 5f |_PUBLIC |void.MP_|
|00001bf0| 69 6e 69 74 28 29 0a 7b | 0a 20 20 20 20 74 69 6d |init().{|. tim|
|00001c00| 65 5f 74 20 6e 6f 77 3b | 0a 20 20 20 20 74 69 6d |e_t now;|. tim|
|00001c10| 65 28 26 6e 6f 77 29 3b | 0a 20 20 20 20 4d 50 5f |e(&now);|. MP_|
|00001c20| 70 6f 73 78 20 3d 20 4d | 50 5f 70 6f 73 79 20 3d |posx = M|P_posy =|
|00001c30| 20 30 3b 0a 20 20 20 20 | 66 70 72 69 6e 74 66 28 | 0;. |fprintf(|
|00001c40| 67 70 6f 75 74 66 69 6c | 65 2c 20 22 25 25 47 4e |gpoutfil|e, "%%GN|
|00001c50| 55 50 4c 4f 54 20 4d 65 | 74 61 70 6f 73 74 20 6f |UPLOT Me|tapost o|
|00001c60| 75 74 70 75 74 3a 20 25 | 73 5c 6e 22 2c 20 61 73 |utput: %|s\n", as|
|00001c70| 63 74 69 6d 65 28 6c 6f | 63 61 6c 74 69 6d 65 28 |ctime(lo|caltime(|
|00001c80| 26 6e 6f 77 29 29 29 3b | 0a 20 20 20 20 66 70 75 |&now)));|. fpu|
|00001c90| 74 73 28 22 5c 6e 5c 0a | 64 65 66 61 75 6c 74 6d |ts("\n\.|defaultm|
|00001ca0| 70 74 3a 3d 6d 70 74 3a | 3d 34 3b 5c 6e 5c 0a 74 |pt:=mpt:|=4;\n\.t|
|00001cb0| 68 3a 3d 2e 36 3b 5c 6e | 5c 0a 5c 6e 5c 0a 64 65 |h:=.6;\n|\.\n\.de|
|00001cc0| 66 20 73 63 61 6c 65 70 | 65 6e 20 65 78 70 72 20 |f scalep|en expr |
|00001cd0| 6e 20 3d 20 70 69 63 6b | 75 70 20 70 65 6e 63 69 |n = pick|up penci|
|00001ce0| 72 63 6c 65 20 73 63 61 | 6c 65 64 20 28 6e 2a 74 |rcle sca|led (n*t|
|00001cf0| 68 29 20 65 6e 64 64 65 | 66 3b 5c 6e 5c 0a 64 65 |h) endde|f;\n\.de|
|00001d00| 66 20 70 74 73 69 7a 65 | 20 65 78 70 72 20 6e 20 |f ptsize| expr n |
|00001d10| 3d 20 6d 70 74 3a 3d 6e | 2a 64 65 66 61 75 6c 74 |= mpt:=n|*default|
|00001d20| 6d 70 74 20 65 6e 64 64 | 65 66 3b 5c 6e 22 2c 0a |mpt endd|ef;\n",.|
|00001d30| 09 20 20 67 70 6f 75 74 | 66 69 6c 65 29 3b 0a 0a |. gpout|file);..|
|00001d40| 20 20 20 20 66 70 72 69 | 6e 74 66 28 67 70 6f 75 | fpri|ntf(gpou|
|00001d50| 74 66 69 6c 65 2c 20 22 | 5c 6e 74 65 78 74 6d 61 |tfile, "|\ntextma|
|00001d60| 67 3a 3d 25 36 2e 33 66 | 3b 5c 6e 22 2c 20 4d 50 |g:=%6.3f|;\n", MP|
|00001d70| 5f 74 65 78 74 6d 61 67 | 29 3b 0a 0a 20 20 20 20 |_textmag|);.. |
|00001d80| 66 70 75 74 73 28 22 5c | 0a 76 61 72 64 65 66 20 |fputs("\|.vardef |
|00001d90| 6d 61 6b 65 70 69 63 28 | 65 78 70 72 20 73 74 72 |makepic(|expr str|
|00001da0| 29 20 3d 5c 6e 5c 0a 20 | 20 69 66 20 70 69 63 74 |) =\n\. | if pict|
|00001db0| 75 72 65 20 73 74 72 20 | 3a 20 73 74 72 20 73 63 |ure str |: str sc|
|00001dc0| 61 6c 65 64 20 74 65 78 | 74 6d 61 67 5c 6e 5c 0a |aled tex|tmag\n\.|
|00001dd0| 20 20 25 20 6f 74 68 65 | 72 77 69 73 65 20 61 20 | % othe|rwise a |
|00001de0| 73 74 72 69 6e 67 5c 6e | 5c 0a 20 20 65 6c 73 65 |string\n|\. else|
|00001df0| 3a 20 73 74 72 20 69 6e | 66 6f 6e 74 20 64 65 66 |: str in|font def|
|00001e00| 61 75 6c 74 66 6f 6e 74 | 20 73 63 61 6c 65 64 20 |aultfont| scaled |
|00001e10| 28 64 65 66 61 75 6c 74 | 73 63 61 6c 65 2a 74 65 |(default|scale*te|
|00001e20| 78 74 6d 61 67 29 5c 6e | 5c 0a 20 20 66 69 5c 6e |xtmag)\n|\. fi\n|
|00001e30| 5c 0a 65 6e 64 64 65 66 | 3b 5c 6e 5c 0a 5c 6e 5c |\.enddef|;\n\.\n\|
|00001e40| 0a 64 65 66 09 69 6e 66 | 6f 6e 74 73 69 7a 65 28 |.def.inf|ontsize(|
|00001e50| 65 78 70 72 20 73 74 72 | 2c 20 73 69 7a 65 29 20 |expr str|, size) |
|00001e60| 3d 5c 6e 5c 0a 20 20 69 | 6e 66 6f 6e 74 20 73 74 |=\n\. i|nfont st|
|00001e70| 72 20 73 63 61 6c 65 64 | 20 28 73 69 7a 65 20 2f |r scaled| (size /|
|00001e80| 09 66 6f 6e 74 73 69 7a | 65 20 73 74 72 29 5c 6e |.fontsiz|e str)\n|
|00001e90| 5c 0a 65 6e 64 64 65 66 | 3b 5c 6e 22 2c 0a 09 20 |\.enddef|;\n",.. |
|00001ea0| 20 67 70 6f 75 74 66 69 | 6c 65 29 3b 0a 0a 20 20 | gpoutfi|le);.. |
|00001eb0| 20 20 69 66 20 28 4d 50 | 5f 6e 6f 74 65 78 29 20 | if (MP|_notex) |
|00001ec0| 7b 0a 09 66 70 72 69 6e | 74 66 28 67 70 6f 75 74 |{..fprin|tf(gpout|
|00001ed0| 66 69 6c 65 2c 20 22 5c | 6e 5c 0a 64 65 66 61 75 |file, "\|n\.defau|
|00001ee0| 6c 74 66 6f 6e 74 3a 3d | 20 5c 22 25 73 5c 22 3b |ltfont:=| \"%s\";|
|00001ef0| 5c 6e 5c 0a 64 65 66 61 | 75 6c 74 73 63 61 6c 65 |\n\.defa|ultscale|
|00001f00| 20 3a 3d 20 25 36 2e 33 | 66 2f 66 6f 6e 74 73 69 | := %6.3|f/fontsi|
|00001f10| 7a 65 20 64 65 66 61 75 | 6c 74 66 6f 6e 74 3b 5c |ze defau|ltfont;\|
|00001f20| 6e 22 2c 0a 09 09 4d 50 | 5f 66 6f 6e 74 6e 61 6d |n",...MP|_fontnam|
|00001f30| 65 2c 20 4d 50 5f 66 6f | 6e 74 73 69 7a 65 29 3b |e, MP_fo|ntsize);|
|00001f40| 0a 20 20 20 20 7d 20 65 | 6c 73 65 20 7b 0a 09 66 |. } e|lse {..f|
|00001f50| 70 75 74 73 28 22 5c 6e | 5c 0a 25 66 6f 6e 74 20 |puts("\n|\.%font |
|00001f60| 63 68 61 6e 67 65 73 5c | 6e 5c 0a 76 65 72 62 61 |changes\|n\.verba|
|00001f70| 74 69 6d 74 65 78 5c 6e | 5c 0a 20 20 5c 5c 64 65 |timtex\n|\. \\de|
|00001f80| 66 5c 5c 73 65 74 66 6f | 6e 74 23 31 23 32 7b 25 |f\\setfo|nt#1#2{%|
|00001f90| 2e 5c 6e 5c 0a 20 20 20 | 20 5c 5c 66 6f 6e 74 5c |.\n\. | \\font\|
|00001fa0| 5c 67 70 66 6f 6e 74 3d | 23 31 20 61 74 20 23 32 |\gpfont=|#1 at #2|
|00001fb0| 70 74 5c 6e 5c 0a 20 20 | 20 20 5c 5c 67 70 66 6f |pt\n\. | \\gpfo|
|00001fc0| 6e 74 7d 5c 6e 22 2c 0a | 09 20 20 20 20 20 20 67 |nt}\n",.|. g|
|00001fd0| 70 6f 75 74 66 69 6c 65 | 29 3b 0a 0a 09 66 70 72 |poutfile|);...fpr|
|00001fe0| 69 6e 74 66 28 67 70 6f | 75 74 66 69 6c 65 2c 20 |intf(gpo|utfile, |
|00001ff0| 22 5c 5c 73 65 74 66 6f | 6e 74 7b 25 73 7d 7b 25 |"\\setfo|nt{%s}{%|
|00002000| 35 2e 32 66 7d 5c 6e 65 | 74 65 78 5c 6e 22 2c 0a |5.2f}\ne|tex\n",.|
|00002010| 09 09 4d 50 5f 66 6f 6e | 74 6e 61 6d 65 2c 20 4d |..MP_fon|tname, M|
|00002020| 50 5f 66 6f 6e 74 73 69 | 7a 65 29 3b 0a 20 20 20 |P_fontsi|ze);. |
|00002030| 20 7d 0a 20 20 20 20 66 | 70 75 74 73 28 22 5c 6e | }. f|puts("\n|
|00002040| 5c 0a 63 6f 6c 6f 72 20 | 63 75 72 72 65 6e 74 63 |\.color |currentc|
|00002050| 6f 6c 6f 72 3b 20 63 75 | 72 72 65 6e 74 63 6f 6c |olor; cu|rrentcol|
|00002060| 6f 72 3d 62 6c 61 63 6b | 3b 5c 6e 5c 0a 62 6f 6f |or=black|;\n\.boo|
|00002070| 6c 65 61 6e 20 63 6f 6c | 6f 72 6c 69 6e 65 73 2c |lean col|orlines,|
|00002080| 64 61 73 68 65 64 6c 69 | 6e 65 73 3b 5c 6e 22 2c |dashedli|nes;\n",|
|00002090| 0a 09 20 20 67 70 6f 75 | 74 66 69 6c 65 29 3b 0a |.. gpou|tfile);.|
|000020a0| 20 20 20 20 69 66 20 28 | 4d 50 5f 63 6f 6c 6f 72 | if (|MP_color|
|000020b0| 29 20 7b 0a 09 66 70 75 | 74 73 28 22 63 6f 6c 6f |) {..fpu|ts("colo|
|000020c0| 72 6c 69 6e 65 73 3a 3d | 74 72 75 65 3b 5c 6e 22 |rlines:=|true;\n"|
|000020d0| 2c 20 67 70 6f 75 74 66 | 69 6c 65 29 3b 0a 20 20 |, gpoutf|ile);. |
|000020e0| 20 20 7d 20 65 6c 73 65 | 20 7b 0a 09 66 70 75 74 | } else| {..fput|
|000020f0| 73 28 22 63 6f 6c 6f 72 | 6c 69 6e 65 73 3a 3d 66 |s("color|lines:=f|
|00002100| 61 6c 73 65 3b 5c 6e 22 | 2c 20 67 70 6f 75 74 66 |alse;\n"|, gpoutf|
|00002110| 69 6c 65 29 3b 0a 20 20 | 20 20 7d 0a 20 20 20 20 |ile);. | }. |
|00002120| 69 66 20 28 4d 50 5f 73 | 6f 6c 69 64 29 20 7b 0a |if (MP_s|olid) {.|
|00002130| 09 66 70 75 74 73 28 22 | 64 61 73 68 65 64 6c 69 |.fputs("|dashedli|
|00002140| 6e 65 73 3a 3d 66 61 6c | 73 65 3b 5c 6e 22 2c 20 |nes:=fal|se;\n", |
|00002150| 67 70 6f 75 74 66 69 6c | 65 29 3b 0a 20 20 20 20 |gpoutfil|e);. |
|00002160| 7d 20 65 6c 73 65 20 7b | 0a 09 66 70 75 74 73 28 |} else {|..fputs(|
|00002170| 22 64 61 73 68 65 64 6c | 69 6e 65 73 3a 3d 74 72 |"dashedl|ines:=tr|
|00002180| 75 65 3b 5c 6e 22 2c 20 | 67 70 6f 75 74 66 69 6c |ue;\n", |gpoutfil|
|00002190| 65 29 3b 0a 20 20 20 20 | 7d 0a 20 20 20 20 66 70 |e);. |}. fp|
|000021a0| 75 74 73 28 22 5c 6e 5c | 0a 64 65 66 20 5f 77 63 |uts("\n\|.def _wc|
|000021b0| 20 3d 20 77 69 74 68 70 | 65 6e 20 63 75 72 72 65 | = withp|en curre|
|000021c0| 6e 74 70 65 6e 20 77 69 | 74 68 63 6f 6c 6f 72 20 |ntpen wi|thcolor |
|000021d0| 63 75 72 72 65 6e 74 63 | 6f 6c 6f 72 20 65 6e 64 |currentc|olor end|
|000021e0| 64 65 66 3b 5c 6e 5c 0a | 64 65 66 20 5f 61 63 20 |def;\n\.|def _ac |
|000021f0| 3d 20 61 64 64 74 6f 20 | 63 75 72 72 65 6e 74 70 |= addto |currentp|
|00002200| 69 63 74 75 72 65 20 65 | 6e 64 64 65 66 3b 5c 6e |icture e|nddef;\n|
|00002210| 5c 0a 64 65 66 20 5f 73 | 6d 73 20 3d 20 73 63 61 |\.def _s|ms = sca|
|00002220| 6c 65 64 20 6d 70 74 20 | 73 68 69 66 74 65 64 20 |led mpt |shifted |
|00002230| 65 6e 64 64 65 66 3b 5c | 6e 5c 0a 25 20 64 72 61 |enddef;\|n\.% dra|
|00002240| 77 69 6e 67 20 70 6f 69 | 6e 74 2d 74 79 70 65 73 |wing poi|nt-types|
|00002250| 5c 6e 5c 0a 64 65 66 20 | 67 70 64 72 61 77 20 28 |\n\.def |gpdraw (|
|00002260| 65 78 70 72 20 6e 2c 20 | 78 2c 20 79 29 20 3d 5c |expr n, |x, y) =\|
|00002270| 6e 5c 0a 20 20 69 66 20 | 6e 3c 30 3a 20 5f 61 63 |n\. if |n<0: _ac|
|00002280| 20 63 6f 6e 74 6f 75 72 | 20 66 75 6c 6c 63 69 72 | contour| fullcir|
|00002290| 63 6c 65 20 5f 73 6d 73 | 20 28 78 2c 79 29 5c 6e |cle _sms| (x,y)\n|
|000022a0| 5c 0a 20 20 65 6c 73 65 | 69 66 20 28 6e 3d 31 29 |\. else|if (n=1)|
|000022b0| 20 6f 72 20 28 6e 3d 33 | 29 3a 5c 6e 5c 0a 20 20 | or (n=3|):\n\. |
|000022c0| 20 20 5f 61 63 20 64 6f | 75 62 6c 65 70 61 74 68 | _ac do|ublepath|
|000022d0| 20 70 74 70 61 74 68 5b | 6e 5d 20 5f 73 6d 73 20 | ptpath[|n] _sms |
|000022e0| 28 78 2c 79 29 20 5f 77 | 63 3b 5c 6e 5c 0a 20 20 |(x,y) _w|c;\n\. |
|000022f0| 20 20 5f 61 63 20 64 6f | 75 62 6c 65 70 61 74 68 | _ac do|ublepath|
|00002300| 20 70 74 70 61 74 68 5b | 6e 5d 20 72 6f 74 61 74 | ptpath[|n] rotat|
|00002310| 65 64 20 39 30 20 5f 73 | 6d 73 20 28 78 2c 79 29 |ed 90 _s|ms (x,y)|
|00002320| 20 5f 77 63 5c 6e 5c 0a | 20 20 65 6c 73 65 69 66 | _wc\n\.| elseif|
|00002330| 20 6e 3c 36 3a 20 5f 61 | 63 20 64 6f 75 62 6c 65 | n<6: _a|c double|
|00002340| 70 61 74 68 20 70 74 70 | 61 74 68 5b 6e 5d 20 5f |path ptp|ath[n] _|
|00002350| 73 6d 73 20 28 78 2c 79 | 29 20 5f 77 63 5c 6e 5c |sms (x,y|) _wc\n\|
|00002360| 0a 20 20 65 6c 73 65 3a | 20 5f 61 63 20 63 6f 6e |. else:| _ac con|
|00002370| 74 6f 75 72 20 70 74 70 | 61 74 68 5b 6e 5d 20 5f |tour ptp|ath[n] _|
|00002380| 73 6d 73 20 28 78 2c 79 | 29 20 5f 77 63 5c 6e 5c |sms (x,y|) _wc\n\|
|00002390| 0a 20 20 66 69 5c 6e 5c | 0a 65 6e 64 64 65 66 3b |. fi\n\|.enddef;|
|000023a0| 5c 6e 5c 0a 5c 6e 5c 0a | 25 20 74 68 65 20 70 6f |\n\.\n\.|% the po|
|000023b0| 69 6e 74 20 73 68 61 70 | 65 73 5c 6e 5c 0a 70 61 |int shap|es\n\.pa|
|000023c0| 74 68 20 70 74 70 61 74 | 68 5b 5d 3b 5c 6e 5c 0a |th ptpat|h[];\n\.|
|000023d0| 25 64 69 61 6d 6f 6e 64 | 5c 6e 5c 0a 70 74 70 61 |%diamond|\n\.ptpa|
|000023e0| 74 68 30 20 3d 20 70 74 | 70 61 74 68 36 20 3d 20 |th0 = pt|path6 = |
|000023f0| 28 2d 31 2f 32 2c 30 29 | 2d 2d 28 30 2c 2d 31 2f |(-1/2,0)|--(0,-1/|
|00002400| 32 29 2d 2d 28 31 2f 32 | 2c 30 29 2d 2d 28 30 2c |2)--(1/2|,0)--(0,|
|00002410| 31 2f 32 29 2d 2d 63 79 | 63 6c 65 3b 5c 6e 5c 0a |1/2)--cy|cle;\n\.|
|00002420| 25 20 70 6c 75 73 20 73 | 69 67 6e 5c 6e 5c 0a 70 |% plus s|ign\n\.p|
|00002430| 74 70 61 74 68 31 20 3d | 20 28 2d 31 2f 32 2c 30 |tpath1 =| (-1/2,0|
|00002440| 29 2d 2d 28 31 2f 32 2c | 30 29 3b 5c 6e 5c 0a 25 |)--(1/2,|0);\n\.%|
|00002450| 20 73 71 75 61 72 65 5c | 6e 5c 0a 70 74 70 61 74 | square\|n\.ptpat|
|00002460| 68 32 20 3d 20 70 74 70 | 61 74 68 37 20 3d 20 28 |h2 = ptp|ath7 = (|
|00002470| 2d 31 2f 32 2c 2d 31 2f | 32 29 2d 2d 28 31 2f 32 |-1/2,-1/|2)--(1/2|
|00002480| 2c 2d 31 2f 32 29 2d 2d | 28 31 2f 32 2c 31 2f 32 |,-1/2)--|(1/2,1/2|
|00002490| 29 2d 2d 28 2d 31 2f 32 | 2c 31 2f 32 29 2d 2d 63 |)--(-1/2|,1/2)--c|
|000024a0| 79 63 6c 65 3b 5c 6e 5c | 0a 25 20 63 72 6f 73 73 |ycle;\n\|.% cross|
|000024b0| 5c 6e 5c 0a 70 74 70 61 | 74 68 33 20 3a 3d 20 28 |\n\.ptpa|th3 := (|
|000024c0| 2d 31 2f 32 2c 2d 31 2f | 32 29 2d 2d 28 31 2f 32 |-1/2,-1/|2)--(1/2|
|000024d0| 2c 31 2f 32 29 3b 5c 6e | 5c 0a 25 20 63 69 72 63 |,1/2);\n|\.% circ|
|000024e0| 6c 65 3a 5c 6e 5c 0a 70 | 74 70 61 74 68 34 20 3d |le:\n\.p|tpath4 =|
|000024f0| 20 70 74 70 61 74 68 38 | 3a 3d 20 66 75 6c 6c 63 | ptpath8|:= fullc|
|00002500| 69 72 63 6c 65 3b 5c 6e | 5c 0a 25 20 74 72 69 61 |ircle;\n|\.% tria|
|00002510| 6e 67 6c 65 5c 6e 5c 0a | 70 74 70 61 74 68 35 20 |ngle\n\.|ptpath5 |
|00002520| 3d 20 70 74 70 61 74 68 | 39 20 3a 3d 20 28 30 2c |= ptpath|9 := (0,|
|00002530| 31 2f 32 29 2d 2d 28 2d | 31 2f 32 2c 2d 31 2f 32 |1/2)--(-|1/2,-1/2|
|00002540| 29 2d 2d 28 31 2f 32 2c | 2d 31 2f 32 29 2d 2d 63 |)--(1/2,|-1/2)--c|
|00002550| 79 63 6c 65 3b 5c 6e 5c | 0a 5c 6e 5c 0a 64 65 66 |ycle;\n\|.\n\.def|
|00002560| 20 6c 69 6e 65 74 79 70 | 65 20 65 78 70 72 20 6e | linetyp|e expr n|
|00002570| 20 3d 5c 6e 5c 0a 20 20 | 63 75 72 72 65 6e 74 63 | =\n\. |currentc|
|00002580| 6f 6c 6f 72 3a 3d 20 69 | 66 20 63 6f 6c 6f 72 6c |olor:= i|f colorl|
|00002590| 69 6e 65 73 20 3a 20 63 | 6f 6c 5b 6e 5d 20 65 6c |ines : c|ol[n] el|
|000025a0| 73 65 3a 20 62 6c 61 63 | 6b 20 66 69 3b 5c 6e 5c |se: blac|k fi;\n\|
|000025b0| 0a 20 20 69 66 20 6e 20 | 3d 20 2d 31 20 3a 5c 6e |. if n |= -1 :\n|
|000025c0| 5c 0a 20 20 20 20 20 20 | 64 72 61 77 6f 70 74 69 |\. |drawopti|
|000025d0| 6f 6e 73 28 77 69 74 68 | 63 6f 6c 6f 72 20 63 75 |ons(with|color cu|
|000025e0| 72 72 65 6e 74 63 6f 6c | 6f 72 20 77 69 74 68 70 |rrentcol|or withp|
|000025f0| 65 6e 20 28 63 75 72 72 | 65 6e 74 70 65 6e 20 73 |en (curr|entpen s|
|00002600| 63 61 6c 65 64 20 2e 35 | 29 29 3b 5c 6e 5c 0a 20 |caled .5|));\n\. |
|00002610| 20 65 6c 73 65 69 66 20 | 6e 20 3c 20 31 20 3a 5c | elseif |n < 1 :\|
|00002620| 6e 5c 0a 20 20 20 20 64 | 72 61 77 6f 70 74 69 6f |n\. d|rawoptio|
|00002630| 6e 73 28 5f 77 63 29 3b | 5c 6e 5c 0a 20 20 65 6c |ns(_wc);|\n\. el|
|00002640| 73 65 20 3a 5c 6e 5c 0a | 20 20 20 20 64 72 61 77 |se :\n\.| draw|
|00002650| 6f 70 74 69 6f 6e 73 28 | 20 69 66 20 64 61 73 68 |options(| if dash|
|00002660| 65 64 6c 69 6e 65 73 3a | 20 64 61 73 68 65 64 20 |edlines:| dashed |
|00002670| 6c 74 5b 6e 5d 20 66 69 | 20 5f 77 63 29 3b 5c 6e |lt[n] fi| _wc);\n|
|00002680| 5c 0a 20 20 66 69 5c 6e | 5c 0a 65 6e 64 64 65 66 |\. fi\n|\.enddef|
|00002690| 3b 5c 6e 5c 0a 5c 6e 5c | 0a 25 20 64 61 73 68 20 |;\n\.\n\|.% dash |
|000026a0| 70 61 74 74 65 72 6e 73 | 5c 6e 5c 0a 70 69 63 74 |patterns|\n\.pict|
|000026b0| 75 72 65 20 6c 74 5b 5d | 3b 5c 6e 5c 0a 6c 74 31 |ure lt[]|;\n\.lt1|
|000026c0| 3d 64 61 73 68 70 61 74 | 74 65 72 6e 28 6f 6e 20 |=dashpat|tern(on |
|000026d0| 32 20 6f 66 66 20 32 29 | 3b 20 25 20 64 61 73 68 |2 off 2)|; % dash|
|000026e0| 65 73 5c 6e 5c 0a 6c 74 | 32 3d 64 61 73 68 70 61 |es\n\.lt|2=dashpa|
|000026f0| 74 74 65 72 6e 28 6f 6e | 20 32 20 6f 66 66 20 32 |ttern(on| 2 off 2|
|00002700| 20 6f 6e 20 30 2e 32 20 | 6f 66 66 20 32 29 3b 20 | on 0.2 |off 2); |
|00002710| 25 64 61 73 68 2d 64 6f | 74 5c 6e 5c 0a 6c 74 33 |%dash-do|t\n\.lt3|
|00002720| 3d 6c 74 31 20 73 63 61 | 6c 65 64 20 31 2e 34 31 |=lt1 sca|led 1.41|
|00002730| 34 3b 5c 6e 5c 0a 6c 74 | 34 3d 6c 74 32 20 73 63 |4;\n\.lt|4=lt2 sc|
|00002740| 61 6c 65 64 20 31 2e 34 | 31 34 3b 5c 6e 5c 0a 6c |aled 1.4|14;\n\.l|
|00002750| 74 35 3d 6c 74 31 20 73 | 63 61 6c 65 64 20 32 3b |t5=lt1 s|caled 2;|
|00002760| 5c 6e 5c 0a 6c 74 36 3a | 3d 6c 74 32 20 73 63 61 |\n\.lt6:|=lt2 sca|
|00002770| 6c 65 64 20 32 3b 5c 6e | 5c 0a 6c 74 37 3d 64 61 |led 2;\n|\.lt7=da|
|00002780| 73 68 70 61 74 74 65 72 | 6e 28 6f 6e 20 30 2e 32 |shpatter|n(on 0.2|
|00002790| 20 6f 66 66 20 32 29 3b | 20 25 64 6f 74 73 5c 6e | off 2);| %dots\n|
|000027a0| 5c 0a 5c 6e 5c 0a 63 6f | 6c 6f 72 20 63 6f 6c 5b |\.\n\.co|lor col[|
|000027b0| 5d 2c 63 79 61 6e 2c 20 | 6d 61 67 65 6e 74 61 2c |],cyan, |magenta,|
|000027c0| 20 79 65 6c 6c 6f 77 3b | 5c 6e 5c 0a 63 79 61 6e | yellow;|\n\.cyan|
|000027d0| 3d 62 6c 75 65 2b 67 72 | 65 65 6e 3b 20 6d 61 67 |=blue+gr|een; mag|
|000027e0| 65 6e 74 61 3d 72 65 64 | 2b 62 6c 75 65 3b 79 65 |enta=red|+blue;ye|
|000027f0| 6c 6c 6f 77 3d 67 72 65 | 65 6e 2b 72 65 64 3b 5c |llow=gre|en+red;\|
|00002800| 6e 5c 0a 63 6f 6c 5b 2d | 32 5d 3a 3d 63 6f 6c 5b |n\.col[-|2]:=col[|
|00002810| 2d 31 5d 3a 3d 63 6f 6c | 30 3a 3d 62 6c 61 63 6b |-1]:=col|0:=black|
|00002820| 3b 5c 6e 5c 0a 63 6f 6c | 31 3a 3d 72 65 64 3b 5c |;\n\.col|1:=red;\|
|00002830| 6e 5c 0a 63 6f 6c 32 3a | 3d 28 2e 32 2c 2e 32 2c |n\.col2:|=(.2,.2,|
|00002840| 31 29 3b 20 25 62 6c 75 | 65 5c 6e 5c 0a 63 6f 6c |1); %blu|e\n\.col|
|00002850| 33 3a 3d 28 31 2c 2e 36 | 36 2c 30 29 3b 20 25 6f |3:=(1,.6|6,0); %o|
|00002860| 72 61 6e 67 65 5c 6e 5c | 0a 63 6f 6c 34 3a 3d 2e |range\n\|.col4:=.|
|00002870| 38 35 2a 67 72 65 65 6e | 3b 5c 6e 5c 0a 63 6f 6c |85*green|;\n\.col|
|00002880| 35 3a 3d 2e 39 2a 6d 61 | 67 65 6e 74 61 3b 5c 6e |5:=.9*ma|genta;\n|
|00002890| 5c 0a 63 6f 6c 36 3a 3d | 30 2e 38 35 2a 63 79 61 |\.col6:=|0.85*cya|
|000028a0| 6e 3b 5c 6e 5c 0a 63 6f | 6c 37 3a 3d 2e 38 35 2a |n;\n\.co|l7:=.85*|
|000028b0| 79 65 6c 6c 6f 77 3b 5c | 6e 5c 0a 5c 6e 5c 0a 25 |yellow;\|n\.\n\.%|
|000028c0| 70 6c 61 63 69 6e 67 20 | 74 65 78 74 5c 6e 5c 0a |placing |text\n\.|
|000028d0| 70 69 63 74 75 72 65 20 | 47 50 74 65 78 74 3b 5c |picture |GPtext;\|
|000028e0| 6e 5c 0a 64 65 66 20 70 | 75 74 5f 74 65 78 74 28 |n\.def p|ut_text(|
|000028f0| 65 78 70 72 20 70 69 63 | 2c 20 78 2c 20 79 2c 20 |expr pic|, x, y, |
|00002900| 72 2c 20 6a 29 20 3d 5c | 6e 5c 0a 20 20 47 50 74 |r, j) =\|n\. GPt|
|00002910| 65 78 74 3a 3d 6d 61 6b | 65 70 69 63 28 70 69 63 |ext:=mak|epic(pic|
|00002920| 29 3b 5c 6e 5c 0a 20 20 | 47 50 74 65 78 74 3a 3d |);\n\. |GPtext:=|
|00002930| 47 50 74 65 78 74 20 73 | 68 69 66 74 65 64 5c 6e |GPtext s|hifted\n|
|00002940| 5c 0a 20 20 20 20 69 66 | 20 6a 20 3d 20 31 3a 20 |\. if| j = 1: |
|00002950| 28 2d 28 75 6c 63 6f 72 | 6e 65 72 20 47 50 74 65 |(-(ulcor|ner GPte|
|00002960| 78 74 20 2b 20 6c 6c 63 | 6f 72 6e 65 72 20 47 50 |xt + llc|orner GP|
|00002970| 74 65 78 74 29 2f 32 29 | 5c 6e 5c 0a 20 20 20 20 |text)/2)|\n\. |
|00002980| 65 6c 73 65 69 66 20 6a | 20 3d 20 32 3a 20 28 2d |elseif j| = 2: (-|
|00002990| 63 65 6e 74 65 72 20 47 | 50 74 65 78 74 29 5c 6e |center G|Ptext)\n|
|000029a0| 5c 0a 20 20 20 20 65 6c | 73 65 3a 20 28 2d 28 75 |\. el|se: (-(u|
|000029b0| 72 63 6f 72 6e 65 72 20 | 47 50 74 65 78 74 20 2b |rcorner |GPtext +|
|000029c0| 20 6c 72 63 6f 72 6e 65 | 72 20 47 50 74 65 78 74 | lrcorne|r GPtext|
|000029d0| 29 2f 32 29 5c 6e 5c 0a | 20 20 20 20 66 69 5c 6e |)/2)\n\.| fi\n|
|000029e0| 5c 0a 20 20 20 20 72 6f | 74 61 74 65 64 20 69 66 |\. ro|tated if|
|000029f0| 20 72 20 3e 20 30 3a 20 | 39 30 20 65 6c 73 65 3a | r > 0: |90 else:|
|00002a00| 20 30 20 66 69 3b 5c 6e | 5c 0a 20 20 64 72 61 77 | 0 fi;\n|\. draw|
|00002a10| 20 47 50 74 65 78 74 20 | 73 68 69 66 74 65 64 20 | GPtext |shifted |
|00002a20| 28 78 2c 79 29 5c 6e 5c | 0a 65 6e 64 64 65 66 3b |(x,y)\n\|.enddef;|
|00002a30| 5c 6e 22 2c 0a 09 20 20 | 67 70 6f 75 74 66 69 6c |\n",.. |gpoutfil|
|00002a40| 65 29 3b 0a 7d 0a 0a 54 | 45 52 4d 5f 50 55 42 4c |e);.}..T|ERM_PUBL|
|00002a50| 49 43 20 76 6f 69 64 0a | 4d 50 5f 67 72 61 70 68 |IC void.|MP_graph|
|00002a60| 69 63 73 28 29 0a 7b 0a | 20 20 20 20 2f 2a 20 69 |ics().{.| /* i|
|00002a70| 6e 69 74 69 61 6c 69 7a | 65 20 22 72 65 6d 65 6d |nitializ|e "remem|
|00002a80| 62 65 72 65 64 22 20 64 | 72 61 77 69 6e 67 20 70 |bered" d|rawing p|
|00002a90| 61 72 61 6d 65 74 65 72 | 73 20 2a 2f 0a 20 20 20 |arameter|s */. |
|00002aa0| 20 4d 50 5f 6f 6c 64 6c | 69 6e 65 20 3d 20 2d 32 | MP_oldl|ine = -2|
|00002ab0| 3b 0a 20 20 20 20 4d 50 | 5f 6f 6c 64 70 65 6e 20 |;. MP|_oldpen |
|00002ac0| 3d 20 31 2e 30 3b 0a 20 | 20 20 20 4d 50 5f 6f 6c |= 1.0;. | MP_ol|
|00002ad0| 64 70 74 73 69 7a 65 20 | 3d 20 70 6f 69 6e 74 73 |dptsize |= points|
|00002ae0| 69 7a 65 3b 0a 20 20 20 | 20 66 70 72 69 6e 74 66 |ize;. | fprintf|
|00002af0| 28 67 70 6f 75 74 66 69 | 6c 65 2c 20 22 5c 6e 62 |(gpoutfi|le, "\nb|
|00002b00| 65 67 69 6e 66 69 67 28 | 25 64 29 3b 5c 6e 77 3a |eginfig(|%d);\nw:|
|00002b10| 3d 25 67 69 6e 3b 68 3a | 3d 25 67 69 6e 3b 5c 6e |=%gin;h:|=%gin;\n|
|00002b20| 22 2c 0a 09 20 20 20 20 | 4d 50 5f 63 68 61 72 5f |",.. |MP_char_|
|00002b30| 63 6f 64 65 2c 20 4d 50 | 5f 78 73 69 7a 65 2c 20 |code, MP|_xsize, |
|00002b40| 4d 50 5f 79 73 69 7a 65 | 29 3b 0a 20 20 20 20 66 |MP_ysize|);. f|
|00002b50| 70 72 69 6e 74 66 28 67 | 70 6f 75 74 66 69 6c 65 |printf(g|poutfile|
|00002b60| 2c 20 22 61 3a 3d 77 2f | 25 64 3b 62 3a 3d 68 2f |, "a:=w/|%d;b:=h/|
|00002b70| 25 64 3b 5c 6e 22 2c 20 | 74 65 72 6d 2d 3e 78 6d |%d;\n", |term->xm|
|00002b80| 61 78 2c 20 74 65 72 6d | 2d 3e 79 6d 61 78 29 3b |ax, term|->ymax);|
|00002b90| 0a 20 20 20 20 66 70 72 | 69 6e 74 66 28 67 70 6f |. fpr|intf(gpo|
|00002ba0| 75 74 66 69 6c 65 2c 20 | 22 73 63 61 6c 65 70 65 |utfile, |"scalepe|
|00002bb0| 6e 20 31 3b 20 70 74 73 | 69 7a 65 20 25 67 3b 6c |n 1; pts|ize %g;l|
|00002bc0| 69 6e 65 74 79 70 65 20 | 2d 32 3b 5c 6e 22 2c 20 |inetype |-2;\n", |
|00002bd0| 70 6f 69 6e 74 73 69 7a | 65 29 3b 0a 20 20 20 20 |pointsiz|e);. |
|00002be0| 4d 50 5f 63 68 61 72 5f | 63 6f 64 65 2b 2b 3b 0a |MP_char_|code++;.|
|00002bf0| 7d 0a 0a 54 45 52 4d 5f | 50 55 42 4c 49 43 20 76 |}..TERM_|PUBLIC v|
|00002c00| 6f 69 64 0a 4d 50 5f 74 | 65 78 74 28 29 0a 7b 0a |oid.MP_t|ext().{.|
|00002c10| 20 20 20 20 69 66 20 28 | 4d 50 5f 69 6e 6c 69 6e | if (|MP_inlin|
|00002c20| 65 29 0a 09 4d 50 5f 65 | 6e 64 6c 69 6e 65 28 29 |e)..MP_e|ndline()|
|00002c30| 3b 0a 20 20 20 20 66 70 | 75 74 73 28 22 65 6e 64 |;. fp|uts("end|
|00002c40| 66 69 67 3b 5c 6e 22 2c | 20 67 70 6f 75 74 66 69 |fig;\n",| gpoutfi|
|00002c50| 6c 65 29 3b 0a 7d 0a 0a | 54 45 52 4d 5f 50 55 42 |le);.}..|TERM_PUB|
|00002c60| 4c 49 43 20 76 6f 69 64 | 0a 4d 50 5f 6c 69 6e 65 |LIC void|.MP_line|
|00002c70| 74 79 70 65 28 6c 74 29 | 0a 69 6e 74 20 6c 74 3b |type(lt)|.int lt;|
|00002c80| 0a 7b 0a 20 20 20 20 69 | 6e 74 20 6c 69 6e 65 74 |.{. i|nt linet|
|00002c90| 79 70 65 20 3d 20 6c 74 | 3b 0a 20 20 20 20 69 66 |ype = lt|;. if|
|00002ca0| 20 28 6c 69 6e 65 74 79 | 70 65 20 3e 3d 20 4d 50 | (linety|pe >= MP|
|00002cb0| 5f 4c 49 4e 45 5f 54 59 | 50 45 53 29 0a 09 6c 69 |_LINE_TY|PES)..li|
|00002cc0| 6e 65 74 79 70 65 20 25 | 3d 20 4d 50 5f 4c 49 4e |netype %|= MP_LIN|
|00002cd0| 45 5f 54 59 50 45 53 3b | 0a 20 20 20 20 69 66 20 |E_TYPES;|. if |
|00002ce0| 28 4d 50 5f 69 6e 6c 69 | 6e 65 29 0a 09 4d 50 5f |(MP_inli|ne)..MP_|
|00002cf0| 65 6e 64 6c 69 6e 65 28 | 29 3b 0a 20 20 20 20 69 |endline(|);. i|
|00002d00| 66 20 28 4d 50 5f 6f 6c | 64 6c 69 6e 65 20 21 3d |f (MP_ol|dline !=|
|00002d10| 20 6c 69 6e 65 74 79 70 | 65 29 20 7b 0a 09 66 70 | linetyp|e) {..fp|
|00002d20| 72 69 6e 74 66 28 67 70 | 6f 75 74 66 69 6c 65 2c |rintf(gp|outfile,|
|00002d30| 20 22 6c 69 6e 65 74 79 | 70 65 20 25 64 3b 5c 6e | "linety|pe %d;\n|
|00002d40| 22 2c 20 6c 69 6e 65 74 | 79 70 65 29 3b 0a 09 4d |", linet|ype);..M|
|00002d50| 50 5f 6f 6c 64 6c 69 6e | 65 20 3d 20 6c 69 6e 65 |P_oldlin|e = line|
|00002d60| 74 79 70 65 3b 0a 20 20 | 20 20 7d 0a 7d 0a 0a 54 |type;. | }.}..T|
|00002d70| 45 52 4d 5f 50 55 42 4c | 49 43 20 76 6f 69 64 0a |ERM_PUBL|IC void.|
|00002d80| 4d 50 5f 6d 6f 76 65 28 | 78 2c 20 79 29 0a 75 6e |MP_move(|x, y).un|
|00002d90| 73 69 67 6e 65 64 20 69 | 6e 74 20 78 3b 0a 75 6e |signed i|nt x;.un|
|00002da0| 73 69 67 6e 65 64 20 69 | 6e 74 20 79 3b 0a 7b 0a |signed i|nt y;.{.|
|00002db0| 20 20 20 20 69 66 20 28 | 28 78 20 21 3d 20 4d 50 | if (|(x != MP|
|00002dc0| 5f 70 6f 73 78 29 20 7c | 7c 20 28 79 20 21 3d 20 |_posx) ||| (y != |
|00002dd0| 4d 50 5f 70 6f 73 79 29 | 29 20 7b 0a 09 69 66 20 |MP_posy)|) {..if |
|00002de0| 28 4d 50 5f 69 6e 6c 69 | 6e 65 29 0a 09 20 20 20 |(MP_inli|ne).. |
|00002df0| 20 4d 50 5f 65 6e 64 6c | 69 6e 65 28 29 3b 0a 09 | MP_endl|ine();..|
|00002e00| 4d 50 5f 70 6f 73 78 20 | 3d 20 78 3b 0a 09 4d 50 |MP_posx |= x;..MP|
|00002e10| 5f 70 6f 73 79 20 3d 20 | 79 3b 0a 20 20 20 20 7d |_posy = |y;. }|
|00002e20| 09 09 09 09 2f 2a 20 65 | 6c 73 65 20 77 65 20 73 |..../* e|lse we s|
|00002e30| 65 65 6d 20 74 6f 20 62 | 65 20 74 68 65 72 65 20 |eem to b|e there |
|00002e40| 61 6c 72 65 61 64 79 20 | 2a 2f 0a 7d 0a 0a 54 45 |already |*/.}..TE|
|00002e50| 52 4d 5f 50 55 42 4c 49 | 43 20 76 6f 69 64 0a 4d |RM_PUBLI|C void.M|
|00002e60| 50 5f 70 6f 69 6e 74 28 | 78 2c 20 79 2c 20 70 74 |P_point(|x, y, pt|
|00002e70| 29 0a 75 6e 73 69 67 6e | 65 64 20 69 6e 74 20 78 |).unsign|ed int x|
|00002e80| 3b 0a 75 6e 73 69 67 6e | 65 64 20 69 6e 74 20 79 |;.unsign|ed int y|
|00002e90| 3b 0a 69 6e 74 20 70 74 | 3b 0a 7b 0a 20 20 20 20 |;.int pt|;.{. |
|00002ea0| 69 6e 74 20 70 6f 69 6e | 74 74 79 70 65 20 3d 20 |int poin|ttype = |
|00002eb0| 70 74 3b 0a 20 20 20 20 | 69 66 20 28 4d 50 5f 69 |pt;. |if (MP_i|
|00002ec0| 6e 6c 69 6e 65 29 0a 09 | 4d 50 5f 65 6e 64 6c 69 |nline)..|MP_endli|
|00002ed0| 6e 65 28 29 3b 0a 0a 20 | 20 20 20 2f 2a 20 50 72 |ne();.. | /* Pr|
|00002ee0| 69 6e 74 20 74 68 65 20 | 73 68 61 70 65 20 64 65 |int the |shape de|
|00002ef0| 66 69 6e 65 64 20 62 79 | 20 27 6e 75 6d 62 65 72 |fined by| 'number|
|00002f00| 27 3b 20 6e 75 6d 62 65 | 72 20 3c 20 30 20 6d 65 |'; numbe|r < 0 me|
|00002f10| 61 6e 73 0a 20 20 20 20 | 20 20 20 74 6f 20 75 73 |ans. | to us|
|00002f20| 65 20 61 20 64 6f 74 2c | 20 6f 74 68 65 72 77 69 |e a dot,| otherwi|
|00002f30| 73 65 20 6f 6e 65 20 6f | 66 20 74 68 65 20 64 65 |se one o|f the de|
|00002f40| 66 69 6e 65 64 20 70 6f | 69 6e 74 73 2e 20 2a 2f |fined po|ints. */|
|00002f50| 0a 0a 20 20 20 20 69 66 | 20 28 70 6f 69 6e 74 74 |.. if| (pointt|
|00002f60| 79 70 65 20 3e 3d 20 4d | 50 5f 50 4f 49 4e 54 5f |ype >= M|P_POINT_|
|00002f70| 54 59 50 45 53 29 0a 09 | 70 6f 69 6e 74 74 79 70 |TYPES)..|pointtyp|
|00002f80| 65 20 25 3d 20 4d 50 5f | 50 4f 49 4e 54 5f 54 59 |e %= MP_|POINT_TY|
|00002f90| 50 45 53 3b 0a 20 20 20 | 20 66 70 72 69 6e 74 66 |PES;. | fprintf|
|00002fa0| 28 67 70 6f 75 74 66 69 | 6c 65 2c 20 22 67 70 64 |(gpoutfi|le, "gpd|
|00002fb0| 72 61 77 28 25 64 2c 25 | 64 61 2c 25 64 62 29 3b |raw(%d,%|da,%db);|
|00002fc0| 5c 6e 22 2c 20 70 6f 69 | 6e 74 74 79 70 65 2c 20 |\n", poi|nttype, |
|00002fd0| 78 2c 20 79 29 3b 0a 7d | 0a 0a 54 45 52 4d 5f 50 |x, y);.}|..TERM_P|
|00002fe0| 55 42 4c 49 43 20 76 6f | 69 64 0a 4d 50 5f 70 6f |UBLIC vo|id.MP_po|
|00002ff0| 69 6e 74 73 69 7a 65 28 | 70 73 29 0a 64 6f 75 62 |intsize(|ps).doub|
|00003000| 6c 65 20 70 73 3b 0a 7b | 0a 20 20 20 20 69 66 20 |le ps;.{|. if |
|00003010| 28 4d 50 5f 6f 6c 64 70 | 74 73 69 7a 65 20 21 3d |(MP_oldp|tsize !=|
|00003020| 20 70 73 29 20 7b 0a 09 | 69 66 20 28 4d 50 5f 69 | ps) {..|if (MP_i|
|00003030| 6e 6c 69 6e 65 29 0a 09 | 20 20 20 20 4d 50 5f 65 |nline)..| MP_e|
|00003040| 6e 64 6c 69 6e 65 28 29 | 3b 0a 09 66 70 72 69 6e |ndline()|;..fprin|
|00003050| 74 66 28 67 70 6f 75 74 | 66 69 6c 65 2c 20 22 70 |tf(gpout|file, "p|
|00003060| 74 73 69 7a 65 20 25 67 | 3b 5c 6e 22 2c 20 70 73 |tsize %g|;\n", ps|
|00003070| 29 3b 0a 09 4d 50 5f 6f | 6c 64 70 74 73 69 7a 65 |);..MP_o|ldptsize|
|00003080| 20 3d 20 70 73 3b 0a 20 | 20 20 20 7d 0a 7d 0a 0a | = ps;. | }.}..|
|00003090| 0a 54 45 52 4d 5f 50 55 | 42 4c 49 43 20 76 6f 69 |.TERM_PU|BLIC voi|
|000030a0| 64 0a 4d 50 5f 6c 69 6e | 65 77 69 64 74 68 28 6c |d.MP_lin|ewidth(l|
|000030b0| 77 29 0a 64 6f 75 62 6c | 65 20 6c 77 3b 0a 7b 0a |w).doubl|e lw;.{.|
|000030c0| 20 20 20 20 69 66 20 28 | 4d 50 5f 6f 6c 64 70 65 | if (|MP_oldpe|
|000030d0| 6e 20 21 3d 20 6c 77 29 | 20 7b 0a 09 69 66 20 28 |n != lw)| {..if (|
|000030e0| 4d 50 5f 69 6e 6c 69 6e | 65 29 0a 09 20 20 20 20 |MP_inlin|e).. |
|000030f0| 4d 50 5f 65 6e 64 6c 69 | 6e 65 28 29 3b 0a 09 66 |MP_endli|ne();..f|
|00003100| 70 72 69 6e 74 66 28 67 | 70 6f 75 74 66 69 6c 65 |printf(g|poutfile|
|00003110| 2c 20 22 73 63 61 6c 65 | 70 65 6e 20 25 67 3b 5c |, "scale|pen %g;\|
|00003120| 6e 22 2c 20 6c 77 29 3b | 0a 09 4d 50 5f 6f 6c 64 |n", lw);|..MP_old|
|00003130| 70 65 6e 20 3d 20 6c 77 | 3b 0a 20 20 20 20 7d 0a |pen = lw|;. }.|
|00003140| 7d 0a 0a 0a 54 45 52 4d | 5f 50 55 42 4c 49 43 20 |}...TERM|_PUBLIC |
|00003150| 76 6f 69 64 0a 4d 50 5f | 76 65 63 74 6f 72 28 75 |void.MP_|vector(u|
|00003160| 78 2c 20 75 79 29 0a 75 | 6e 73 69 67 6e 65 64 20 |x, uy).u|nsigned |
|00003170| 69 6e 74 20 75 78 3b 0a | 75 6e 73 69 67 6e 65 64 |int ux;.|unsigned|
|00003180| 20 69 6e 74 20 75 79 3b | 0a 7b 0a 20 20 20 20 69 | int uy;|.{. i|
|00003190| 66 20 28 28 75 78 20 3d | 3d 20 4d 50 5f 70 6f 73 |f ((ux =|= MP_pos|
|000031a0| 78 29 20 26 26 20 28 75 | 79 20 3d 3d 20 4d 50 5f |x) && (u|y == MP_|
|000031b0| 70 6f 73 79 29 29 0a 09 | 72 65 74 75 72 6e 3b 09 |posy))..|return;.|
|000031c0| 09 09 2f 2a 20 5a 65 72 | 6f 20 6c 65 6e 67 74 68 |../* Zer|o length|
|000031d0| 20 6c 69 6e 65 20 2a 2f | 0a 0a 20 20 20 20 69 66 | line */|.. if|
|000031e0| 20 28 4d 50 5f 69 6e 6c | 69 6e 65 29 20 7b 0a 09 | (MP_inl|ine) {..|
|000031f0| 69 66 20 28 4d 50 5f 6c | 69 6e 65 63 6f 75 6e 74 |if (MP_l|inecount|
|00003200| 2b 2b 20 3e 3d 20 4d 50 | 5f 4c 49 4e 45 4d 41 58 |++ >= MP|_LINEMAX|
|00003210| 29 20 7b 0a 09 20 20 20 | 20 66 70 75 74 73 28 22 |) {.. | fputs("|
|00003220| 5c 6e 22 2c 20 67 70 6f | 75 74 66 69 6c 65 29 3b |\n", gpo|utfile);|
|00003230| 0a 09 20 20 20 20 4d 50 | 5f 6c 69 6e 65 63 6f 75 |.. MP|_linecou|
|00003240| 6e 74 20 3d 20 31 3b 0a | 09 7d 0a 20 20 20 20 7d |nt = 1;.|.}. }|
|00003250| 20 65 6c 73 65 20 7b 0a | 09 4d 50 5f 69 6e 6c 69 | else {.|.MP_inli|
|00003260| 6e 65 20 3d 20 54 52 55 | 45 3b 0a 09 66 70 72 69 |ne = TRU|E;..fpri|
|00003270| 6e 74 66 28 67 70 6f 75 | 74 66 69 6c 65 2c 20 22 |ntf(gpou|tfile, "|
|00003280| 64 72 61 77 20 28 25 64 | 61 2c 25 64 62 29 22 2c |draw (%d|a,%db)",|
|00003290| 20 4d 50 5f 70 6f 73 78 | 2c 20 4d 50 5f 70 6f 73 | MP_posx|, MP_pos|
|000032a0| 79 29 3b 0a 09 4d 50 5f | 6c 69 6e 65 63 6f 75 6e |y);..MP_|linecoun|
|000032b0| 74 20 3d 20 32 3b 0a 20 | 20 20 20 7d 0a 20 20 20 |t = 2;. | }. |
|000032c0| 20 4d 50 5f 70 6f 73 78 | 20 3d 20 75 78 3b 0a 20 | MP_posx| = ux;. |
|000032d0| 20 20 20 4d 50 5f 70 6f | 73 79 20 3d 20 75 79 3b | MP_po|sy = uy;|
|000032e0| 0a 20 20 20 20 66 70 72 | 69 6e 74 66 28 67 70 6f |. fpr|intf(gpo|
|000032f0| 75 74 66 69 6c 65 2c 20 | 22 2d 2d 28 25 64 61 2c |utfile, |"--(%da,|
|00003300| 25 64 62 29 22 2c 20 4d | 50 5f 70 6f 73 78 2c 20 |%db)", M|P_posx, |
|00003310| 4d 50 5f 70 6f 73 79 29 | 3b 0a 7d 0a 0a 73 74 61 |MP_posy)|;.}..sta|
|00003320| 74 69 63 20 76 6f 69 64 | 0a 4d 50 5f 65 6e 64 6c |tic void|.MP_endl|
|00003330| 69 6e 65 28 29 0a 7b 0a | 20 20 20 20 4d 50 5f 69 |ine().{.| MP_i|
|00003340| 6e 6c 69 6e 65 20 3d 20 | 46 41 4c 53 45 3b 0a 20 |nline = |FALSE;. |
|00003350| 20 20 20 66 70 72 69 6e | 74 66 28 67 70 6f 75 74 | fprin|tf(gpout|
|00003360| 66 69 6c 65 2c 20 22 3b | 5c 6e 22 29 3b 0a 7d 0a |file, ";|\n");.}.|
|00003370| 0a 54 45 52 4d 5f 50 55 | 42 4c 49 43 20 76 6f 69 |.TERM_PU|BLIC voi|
|00003380| 64 0a 4d 50 5f 61 72 72 | 6f 77 28 73 78 2c 20 73 |d.MP_arr|ow(sx, s|
|00003390| 79 2c 20 65 78 2c 20 65 | 79 2c 20 68 65 61 64 29 |y, ex, e|y, head)|
|000033a0| 0a 75 6e 73 69 67 6e 65 | 64 20 69 6e 74 20 73 78 |.unsigne|d int sx|
|000033b0| 3b 0a 75 6e 73 69 67 6e | 65 64 20 69 6e 74 20 73 |;.unsign|ed int s|
|000033c0| 79 3b 0a 75 6e 73 69 67 | 6e 65 64 20 69 6e 74 20 |y;.unsig|ned int |
|000033d0| 65 78 3b 0a 75 6e 73 69 | 67 6e 65 64 20 69 6e 74 |ex;.unsi|gned int|
|000033e0| 20 65 79 3b 0a 54 42 4f | 4f 4c 45 41 4e 20 68 65 | ey;.TBO|OLEAN he|
|000033f0| 61 64 3b 0a 7b 0a 20 20 | 20 20 4d 50 5f 6d 6f 76 |ad;.{. | MP_mov|
|00003400| 65 28 73 78 2c 20 73 79 | 29 3b 0a 20 20 20 20 69 |e(sx, sy|);. i|
|00003410| 66 20 28 68 65 61 64 29 | 20 7b 0a 09 66 70 72 69 |f (head)| {..fpri|
|00003420| 6e 74 66 28 67 70 6f 75 | 74 66 69 6c 65 2c 20 22 |ntf(gpou|tfile, "|
|00003430| 64 72 61 77 61 72 72 6f | 77 20 28 25 64 61 2c 25 |drawarro|w (%da,%|
|00003440| 64 62 29 2d 2d 28 25 64 | 61 2c 25 64 62 29 3b 5c |db)--(%d|a,%db);\|
|00003450| 6e 22 2c 0a 09 09 73 78 | 2c 20 73 79 2c 20 65 78 |n",...sx|, sy, ex|
|00003460| 2c 20 65 79 29 3b 0a 20 | 20 20 20 7d 20 65 6c 73 |, ey);. | } els|
|00003470| 65 20 69 66 20 28 28 73 | 78 20 21 3d 20 65 78 29 |e if ((s|x != ex)|
|00003480| 20 7c 7c 20 28 73 79 20 | 21 3d 20 65 79 29 29 20 | || (sy |!= ey)) |
|00003490| 7b 0a 09 66 70 72 69 6e | 74 66 28 67 70 6f 75 74 |{..fprin|tf(gpout|
|000034a0| 66 69 6c 65 2c 20 22 64 | 72 61 77 20 28 25 64 61 |file, "d|raw (%da|
|000034b0| 2c 25 64 62 29 2d 2d 28 | 25 64 61 2c 25 64 62 29 |,%db)--(|%da,%db)|
|000034c0| 3b 5c 6e 22 2c 0a 09 09 | 73 78 2c 20 73 79 2c 20 |;\n",...|sx, sy, |
|000034d0| 65 78 2c 20 65 79 29 3b | 0a 20 20 20 20 7d 09 09 |ex, ey);|. }..|
|000034e0| 09 09 2f 2a 20 65 6c 73 | 65 3a 20 61 72 72 6f 77 |../* els|e: arrow|
|000034f0| 20 77 69 74 68 20 6e 6f | 20 6c 65 6e 67 74 68 20 | with no| length |
|00003500| 61 6e 64 20 6e 6f 20 68 | 65 61 64 20 3d 20 73 6f |and no h|ead = so|
|00003510| 75 6e 64 20 6f 66 20 6f | 6e 65 20 68 61 6e 64 20 |und of o|ne hand |
|00003520| 63 6c 61 70 70 69 6e 67 | 3f 20 2a 2f 0a 20 20 20 |clapping|? */. |
|00003530| 20 4d 50 5f 70 6f 73 78 | 20 3d 20 65 78 3b 0a 20 | MP_posx| = ex;. |
|00003540| 20 20 20 4d 50 5f 70 6f | 73 79 20 3d 20 65 79 3b | MP_po|sy = ey;|
|00003550| 0a 0a 7d 0a 0a 54 45 52 | 4d 5f 50 55 42 4c 49 43 |..}..TER|M_PUBLIC|
|00003560| 20 76 6f 69 64 0a 4d 50 | 5f 70 75 74 5f 74 65 78 | void.MP|_put_tex|
|00003570| 74 28 78 2c 20 79 2c 20 | 73 74 72 29 0a 75 6e 73 |t(x, y, |str).uns|
|00003580| 69 67 6e 65 64 20 69 6e | 74 20 78 2c 20 79 3b 0a |igned in|t x, y;.|
|00003590| 63 68 61 72 20 73 74 72 | 5b 5d 3b 0a 7b 0a 20 20 |char str|[];.{. |
|000035a0| 20 20 69 6e 74 20 69 2c | 20 6a 20 3d 20 30 3b 0a | int i,| j = 0;.|
|000035b0| 20 20 20 20 63 68 61 72 | 20 2a 74 65 78 74 3b 0a | char| *text;.|
|000035c0| 0a 20 20 20 20 2f 2a 20 | 69 67 6e 6f 72 65 20 65 |. /* |ignore e|
|000035d0| 6d 70 74 79 20 73 74 72 | 69 6e 67 73 20 2a 2f 0a |mpty str|ings */.|
|000035e0| 20 20 20 20 69 66 20 28 | 21 73 74 72 20 7c 7c 20 | if (|!str || |
|000035f0| 21 2a 73 74 72 29 0a 09 | 72 65 74 75 72 6e 3b 0a |!*str)..|return;.|
|00003600| 0a 20 20 20 20 2f 2a 20 | 46 2a 2a 2a 2e 20 77 68 |. /* |F***. wh|
|00003610| 79 20 64 6f 20 64 72 69 | 76 65 72 73 20 6e 65 65 |y do dri|vers nee|
|00003620| 64 20 74 6f 20 6d 6f 64 | 69 66 79 20 73 74 72 69 |d to mod|ify stri|
|00003630| 6e 67 20 61 72 67 73 3f | 20 2a 2f 0a 20 20 20 20 |ng args?| */. |
|00003640| 74 65 78 74 20 3d 20 67 | 70 5f 61 6c 6c 6f 63 28 |text = g|p_alloc(|
|00003650| 73 74 72 6c 65 6e 28 73 | 74 72 29 2b 31 2c 20 22 |strlen(s|tr)+1, "|
|00003660| 74 65 6d 70 20 73 74 72 | 69 6e 67 22 29 3b 0a 20 |temp str|ing");. |
|00003670| 20 20 20 73 74 72 63 70 | 79 28 74 65 78 74 2c 73 | strcp|y(text,s|
|00003680| 74 72 29 3b 0a 0a 20 20 | 20 20 69 66 20 28 4d 50 |tr);.. | if (MP|
|00003690| 5f 69 6e 6c 69 6e 65 29 | 0a 09 4d 50 5f 65 6e 64 |_inline)|..MP_end|
|000036a0| 6c 69 6e 65 28 29 3b 0a | 0a 0a 20 20 20 20 73 77 |line();.|.. sw|
|000036b0| 69 74 63 68 20 28 4d 50 | 5f 6a 75 73 74 69 66 79 |itch (MP|_justify|
|000036c0| 29 20 7b 0a 20 20 20 20 | 63 61 73 65 20 4c 45 46 |) {. |case LEF|
|000036d0| 54 3a 0a 09 6a 20 3d 20 | 31 3b 0a 09 62 72 65 61 |T:..j = |1;..brea|
|000036e0| 6b 3b 0a 20 20 20 20 63 | 61 73 65 20 43 45 4e 54 |k;. c|ase CENT|
|000036f0| 52 45 3a 0a 09 6a 20 3d | 20 32 3b 0a 09 62 72 65 |RE:..j =| 2;..bre|
|00003700| 61 6b 3b 0a 20 20 20 20 | 63 61 73 65 20 52 49 47 |ak;. |case RIG|
|00003710| 48 54 3a 0a 09 6a 20 3d | 20 33 3b 0a 09 62 72 65 |HT:..j =| 3;..bre|
|00003720| 61 6b 3b 0a 20 20 20 20 | 7d 0a 20 20 20 20 69 66 |ak;. |}. if|
|00003730| 20 28 4d 50 5f 6e 6f 74 | 65 78 29 20 7b 0a 09 66 | (MP_not|ex) {..f|
|00003740| 6f 72 20 28 69 20 3d 20 | 30 3b 20 69 20 3c 20 73 |or (i = |0; i < s|
|00003750| 74 72 6c 65 6e 28 74 65 | 78 74 29 3b 20 69 2b 2b |trlen(te|xt); i++|
|00003760| 29 0a 09 20 20 20 20 69 | 66 20 28 74 65 78 74 5b |).. i|f (text[|
|00003770| 69 5d 20 3d 3d 20 27 22 | 27 29 0a 09 09 74 65 78 |i] == '"|')...tex|
|00003780| 74 5b 69 5d 20 3d 20 27 | 5c 27 27 3b 09 2f 2a 20 |t[i] = '|\'';./* |
|00003790| 52 65 70 6c 61 63 65 20 | 22 20 77 69 74 68 20 27 |Replace |" with '|
|000037a0| 20 2a 2f 0a 09 69 66 20 | 28 4d 50 5f 66 6f 6e 74 | */..if |(MP_font|
|000037b0| 63 68 61 6e 67 65 64 29 | 20 7b 0a 09 20 20 20 20 |changed)| {.. |
|000037c0| 66 70 72 69 6e 74 66 28 | 67 70 6f 75 74 66 69 6c |fprintf(|gpoutfil|
|000037d0| 65 2c 20 22 5c 0a 70 75 | 74 5f 74 65 78 74 28 5c |e, "\.pu|t_text(\|
|000037e0| 22 25 73 5c 22 20 69 6e | 66 6f 6e 74 73 69 7a 65 |"%s\" in|fontsize|
|000037f0| 28 5c 22 25 73 5c 22 2c | 25 35 2e 32 66 29 2c 20 |(\"%s\",|%5.2f), |
|00003800| 25 64 61 2c 20 25 64 62 | 2c 20 25 64 2c 20 25 64 |%da, %db|, %d, %d|
|00003810| 29 3b 5c 6e 22 2c 0a 09 | 09 20 20 20 20 74 65 78 |);\n",..|. tex|
|00003820| 74 2c 20 4d 50 5f 66 6f | 6e 74 6e 61 6d 65 2c 20 |t, MP_fo|ntname, |
|00003830| 4d 50 5f 66 6f 6e 74 73 | 69 7a 65 2c 20 78 2c 20 |MP_fonts|ize, x, |
|00003840| 79 2c 20 4d 50 5f 61 6e | 67 2c 20 6a 29 3b 0a 09 |y, MP_an|g, j);..|
|00003850| 7d 20 65 6c 73 65 20 7b | 0a 09 20 20 20 20 66 70 |} else {|.. fp|
|00003860| 72 69 6e 74 66 28 67 70 | 6f 75 74 66 69 6c 65 2c |rintf(gp|outfile,|
|00003870| 20 22 70 75 74 5f 74 65 | 78 74 28 5c 22 25 73 5c | "put_te|xt(\"%s\|
|00003880| 22 2c 20 25 64 61 2c 20 | 25 64 62 2c 20 25 64 2c |", %da, |%db, %d,|
|00003890| 20 25 64 29 3b 5c 6e 22 | 2c 0a 09 09 20 20 20 20 | %d);\n"|,... |
|000038a0| 74 65 78 74 2c 20 78 2c | 20 79 2c 20 4d 50 5f 61 |text, x,| y, MP_a|
|000038b0| 6e 67 2c 20 6a 29 3b 0a | 09 7d 0a 20 20 20 20 7d |ng, j);.|.}. }|
|000038c0| 20 65 6c 73 65 20 69 66 | 20 28 4d 50 5f 66 6f 6e | else if| (MP_fon|
|000038d0| 74 63 68 61 6e 67 65 64 | 29 20 7b 0a 09 66 70 72 |tchanged|) {..fpr|
|000038e0| 69 6e 74 66 28 67 70 6f | 75 74 66 69 6c 65 2c 20 |intf(gpo|utfile, |
|000038f0| 22 5c 0a 70 75 74 5f 74 | 65 78 74 28 20 62 74 65 |"\.put_t|ext( bte|
|00003900| 78 20 5c 5c 73 65 74 66 | 6f 6e 74 7b 25 73 7d 7b |x \\setf|ont{%s}{|
|00003910| 25 35 2e 32 66 7d 20 25 | 73 20 65 74 65 78 2c 20 |%5.2f} %|s etex, |
|00003920| 25 64 61 2c 20 25 64 62 | 2c 20 25 64 2c 20 25 64 |%da, %db|, %d, %d|
|00003930| 29 3b 5c 6e 22 2c 0a 09 | 09 4d 50 5f 66 6f 6e 74 |);\n",..|.MP_font|
|00003940| 6e 61 6d 65 2c 20 4d 50 | 5f 66 6f 6e 74 73 69 7a |name, MP|_fontsiz|
|00003950| 65 2c 20 74 65 78 74 2c | 20 78 2c 20 79 2c 20 4d |e, text,| x, y, M|
|00003960| 50 5f 61 6e 67 2c 20 6a | 29 3b 0a 20 20 20 20 7d |P_ang, j|);. }|
|00003970| 20 65 6c 73 65 20 7b 0a | 09 66 70 72 69 6e 74 66 | else {.|.fprintf|
|00003980| 28 67 70 6f 75 74 66 69 | 6c 65 2c 20 22 70 75 74 |(gpoutfi|le, "put|
|00003990| 5f 74 65 78 74 28 20 62 | 74 65 78 20 25 73 20 65 |_text( b|tex %s e|
|000039a0| 74 65 78 2c 20 25 64 61 | 2c 20 25 64 62 2c 20 25 |tex, %da|, %db, %|
|000039b0| 64 2c 20 25 64 29 3b 5c | 6e 22 2c 0a 09 09 74 65 |d, %d);\|n",...te|
|000039c0| 78 74 2c 20 78 2c 20 79 | 2c 20 4d 50 5f 61 6e 67 |xt, x, y|, MP_ang|
|000039d0| 2c 20 6a 29 3b 0a 20 20 | 20 20 7d 0a 0a 20 20 20 |, j);. | }.. |
|000039e0| 20 66 72 65 65 28 74 65 | 78 74 29 3b 0a 7d 0a 0a | free(te|xt);.}..|
|000039f0| 54 45 52 4d 5f 50 55 42 | 4c 49 43 20 69 6e 74 0a |TERM_PUB|LIC int.|
|00003a00| 4d 50 5f 6a 75 73 74 69 | 66 79 5f 74 65 78 74 28 |MP_justi|fy_text(|
|00003a10| 6d 6f 64 65 29 0a 65 6e | 75 6d 20 4a 55 53 54 49 |mode).en|um JUSTI|
|00003a20| 46 59 20 6d 6f 64 65 3b | 0a 7b 0a 20 20 20 20 4d |FY mode;|.{. M|
|00003a30| 50 5f 6a 75 73 74 69 66 | 79 20 3d 20 6d 6f 64 65 |P_justif|y = mode|
|00003a40| 3b 0a 20 20 20 20 72 65 | 74 75 72 6e 20 28 54 52 |;. re|turn (TR|
|00003a50| 55 45 29 3b 0a 7d 0a 0a | 54 45 52 4d 5f 50 55 42 |UE);.}..|TERM_PUB|
|00003a60| 4c 49 43 20 69 6e 74 0a | 4d 50 5f 74 65 78 74 5f |LIC int.|MP_text_|
|00003a70| 61 6e 67 6c 65 28 61 6e | 67 29 0a 69 6e 74 20 61 |angle(an|g).int a|
|00003a80| 6e 67 3b 0a 7b 0a 20 20 | 20 20 2f 2a 20 4d 65 74 |ng;.{. | /* Met|
|00003a90| 61 70 6f 73 74 20 63 6f | 64 65 20 64 6f 65 73 20 |apost co|de does |
|00003aa0| 74 68 65 20 63 6f 6e 76 | 65 72 73 69 6f 6e 20 2a |the conv|ersion *|
|00003ab0| 2f 0a 20 20 20 20 4d 50 | 5f 61 6e 67 20 3d 20 61 |/. MP|_ang = a|
|00003ac0| 6e 67 3b 0a 20 20 20 20 | 72 65 74 75 72 6e 20 28 |ng;. |return (|
|00003ad0| 54 52 55 45 29 3b 0a 7d | 0a 0a 54 45 52 4d 5f 50 |TRUE);.}|..TERM_P|
|00003ae0| 55 42 4c 49 43 20 69 6e | 74 0a 4d 50 5f 73 65 74 |UBLIC in|t.MP_set|
|00003af0| 5f 66 6f 6e 74 28 66 6f | 6e 74 29 0a 63 68 61 72 |_font(fo|nt).char|
|00003b00| 20 2a 66 6f 6e 74 3b 0a | 7b 0a 20 20 20 20 69 66 | *font;.|{. if|
|00003b10| 20 28 2a 66 6f 6e 74 29 | 20 7b 0a 09 73 69 7a 65 | (*font)| {..size|
|00003b20| 5f 74 20 73 65 70 20 3d | 20 73 74 72 63 73 70 6e |_t sep =| strcspn|
|00003b30| 28 66 6f 6e 74 2c 20 22 | 2c 22 29 3b 0a 09 73 74 |(font, "|,");..st|
|00003b40| 72 6e 63 70 79 28 4d 50 | 5f 66 6f 6e 74 6e 61 6d |rncpy(MP|_fontnam|
|00003b50| 65 2c 20 66 6f 6e 74 2c | 20 73 65 70 29 3b 0a 09 |e, font,| sep);..|
|00003b60| 4d 50 5f 66 6f 6e 74 6e | 61 6d 65 5b 73 65 70 5d |MP_fontn|ame[sep]|
|00003b70| 20 3d 20 4e 55 4c 3b 0a | 09 73 73 63 61 6e 66 28 | = NUL;.|.sscanf(|
|00003b80| 26 28 66 6f 6e 74 5b 73 | 65 70 20 2b 20 31 5d 29 |&(font[s|ep + 1])|
|00003b90| 2c 20 22 25 6c 66 22 2c | 20 26 4d 50 5f 66 6f 6e |, "%lf",| &MP_fon|
|00003ba0| 74 73 69 7a 65 29 3b 0a | 09 69 66 20 28 4d 50 5f |tsize);.|.if (MP_|
|00003bb0| 66 6f 6e 74 73 69 7a 65 | 20 3c 20 35 29 0a 09 20 |fontsize| < 5).. |
|00003bc0| 20 20 20 4d 50 5f 66 6f | 6e 74 73 69 7a 65 20 3d | MP_fo|ntsize =|
|00003bd0| 20 35 2e 30 3b 0a 09 69 | 66 20 28 4d 50 5f 66 6f | 5.0;..i|f (MP_fo|
|00003be0| 6e 74 73 69 7a 65 20 3e | 3d 20 31 30 30 29 0a 09 |ntsize >|= 100)..|
|00003bf0| 20 20 20 20 4d 50 5f 66 | 6f 6e 74 73 69 7a 65 20 | MP_f|ontsize |
|00003c00| 3d 20 39 39 2e 39 39 3b | 0a 09 2f 2a 20 20 2a 2f |= 99.99;|../* */|
|00003c10| 0a 09 4d 50 5f 66 6f 6e | 74 63 68 61 6e 67 65 64 |..MP_fon|tchanged|
|00003c20| 20 3d 20 54 52 55 45 3b | 0a 20 20 20 20 7d 20 65 | = TRUE;|. } e|
|00003c30| 6c 73 65 20 7b 0a 09 4d | 50 5f 66 6f 6e 74 63 68 |lse {..M|P_fontch|
|00003c40| 61 6e 67 65 64 20 3d 20 | 46 41 4c 53 45 3b 0a 20 |anged = |FALSE;. |
|00003c50| 20 20 20 7d 0a 20 20 20 | 20 72 65 74 75 72 6e 20 | }. | return |
|00003c60| 54 52 55 45 3b 0a 7d 0a | 0a 0a 54 45 52 4d 5f 50 |TRUE;.}.|..TERM_P|
|00003c70| 55 42 4c 49 43 20 76 6f | 69 64 0a 4d 50 5f 72 65 |UBLIC vo|id.MP_re|
|00003c80| 73 65 74 28 29 0a 7b 0a | 20 20 20 20 66 70 75 74 |set().{.| fput|
|00003c90| 73 28 22 65 6e 64 2e 5c | 6e 22 2c 20 67 70 6f 75 |s("end.\|n", gpou|
|00003ca0| 74 66 69 6c 65 29 3b 0a | 7d 0a 0a 54 45 52 4d 5f |tfile);.|}..TERM_|
|00003cb0| 50 55 42 4c 49 43 20 76 | 6f 69 64 0a 4d 50 5f 62 |PUBLIC v|oid.MP_b|
|00003cc0| 6f 78 66 69 6c 6c 28 73 | 74 79 2c 20 78 31 2c 20 |oxfill(s|ty, x1, |
|00003cd0| 79 31 2c 20 77 64 2c 20 | 68 74 29 0a 69 6e 74 20 |y1, wd, |ht).int |
|00003ce0| 73 74 79 3b 0a 75 6e 73 | 69 67 6e 65 64 20 69 6e |sty;.uns|igned in|
|00003cf0| 74 20 78 31 2c 20 79 31 | 2c 20 77 64 2c 20 68 74 |t x1, y1|, wd, ht|
|00003d00| 3b 0a 7b 0a 20 20 20 20 | 2f 2a 20 66 6f 72 20 6e |;.{. |/* for n|
|00003d10| 6f 77 20 73 69 6d 70 6c | 79 20 63 6c 65 61 72 20 |ow simpl|y clear |
|00003d20| 62 6f 78 20 69 66 20 73 | 74 79 20 3c 3d 20 30 2c |box if s|ty <= 0,|
|00003d30| 20 64 6f 20 6e 6f 74 68 | 69 6e 67 20 6f 74 68 65 | do noth|ing othe|
|00003d40| 72 77 69 73 65 20 2a 2f | 0a 20 20 20 20 69 66 20 |rwise */|. if |
|00003d50| 28 4d 50 5f 69 6e 6c 69 | 6e 65 29 0a 09 4d 50 5f |(MP_inli|ne)..MP_|
|00003d60| 65 6e 64 6c 69 6e 65 28 | 29 3b 0a 20 20 20 20 69 |endline(|);. i|
|00003d70| 66 20 28 73 74 79 20 3c | 3d 20 30 29 0a 09 66 70 |f (sty <|= 0)..fp|
|00003d80| 72 69 6e 74 66 28 67 70 | 6f 75 74 66 69 6c 65 2c |rintf(gp|outfile,|
|00003d90| 20 22 5c 0a 66 69 6c 6c | 20 28 25 64 61 2c 25 64 | "\.fill| (%da,%d|
|00003da0| 62 29 2d 2d 28 25 64 61 | 2c 25 64 62 29 2d 2d 28 |b)--(%da|,%db)--(|
|00003db0| 25 64 61 2c 25 64 62 29 | 2d 2d 28 25 64 61 2c 25 |%da,%db)|--(%da,%|
|00003dc0| 64 62 29 2d 2d 63 79 63 | 6c 65 20 77 69 74 68 63 |db)--cyc|le withc|
|00003dd0| 6f 6c 6f 72 20 62 61 63 | 6b 67 72 6f 75 6e 64 3b |olor bac|kground;|
|00003de0| 5c 6e 22 2c 0a 09 09 78 | 31 2c 20 79 31 2c 20 78 |\n",...x|1, y1, x|
|00003df0| 31 20 2b 20 77 64 2c 20 | 79 31 2c 20 78 31 20 2b |1 + wd, |y1, x1 +|
|00003e00| 20 77 64 2c 20 79 31 20 | 2b 20 68 74 2c 20 78 31 | wd, y1 |+ ht, x1|
|00003e10| 2c 20 79 31 20 2b 20 68 | 74 29 3b 0a 7d 0a 0a 23 |, y1 + h|t);.}..#|
|00003e20| 65 6e 64 69 66 20 2f 2a | 20 54 45 52 4d 5f 42 4f |endif /*| TERM_BO|
|00003e30| 44 59 20 2a 2f 0a 0a 23 | 69 66 64 65 66 20 54 45 |DY */..#|ifdef TE|
|00003e40| 52 4d 5f 54 41 42 4c 45 | 0a 0a 54 45 52 4d 5f 54 |RM_TABLE|..TERM_T|
|00003e50| 41 42 4c 45 5f 53 54 41 | 52 54 28 6d 70 5f 64 72 |ABLE_STA|RT(mp_dr|
|00003e60| 69 76 65 72 29 0a 20 20 | 20 20 22 6d 70 22 2c 20 |iver). | "mp", |
|00003e70| 22 4d 65 74 61 50 6f 73 | 74 20 70 6c 6f 74 74 69 |"MetaPos|t plotti|
|00003e80| 6e 67 20 73 74 61 6e 64 | 61 72 64 22 2c 0a 20 20 |ng stand|ard",. |
|00003e90| 20 20 4d 50 5f 58 4d 41 | 58 2c 20 4d 50 5f 59 4d | MP_XMA|X, MP_YM|
|00003ea0| 41 58 2c 20 4d 50 5f 56 | 43 48 41 52 2c 20 4d 50 |AX, MP_V|CHAR, MP|
|00003eb0| 5f 48 43 48 41 52 2c 0a | 20 20 20 20 4d 50 5f 56 |_HCHAR,.| MP_V|
|00003ec0| 54 49 43 2c 20 4d 50 5f | 48 54 49 43 2c 20 4d 50 |TIC, MP_|HTIC, MP|
|00003ed0| 5f 6f 70 74 69 6f 6e 73 | 2c 20 4d 50 5f 69 6e 69 |_options|, MP_ini|
|00003ee0| 74 2c 20 4d 50 5f 72 65 | 73 65 74 2c 0a 20 20 20 |t, MP_re|set,. |
|00003ef0| 20 4d 50 5f 74 65 78 74 | 2c 20 6e 75 6c 6c 5f 73 | MP_text|, null_s|
|00003f00| 63 61 6c 65 2c 20 4d 50 | 5f 67 72 61 70 68 69 63 |cale, MP|_graphic|
|00003f10| 73 2c 20 4d 50 5f 6d 6f | 76 65 2c 20 4d 50 5f 76 |s, MP_mo|ve, MP_v|
|00003f20| 65 63 74 6f 72 2c 0a 20 | 20 20 20 4d 50 5f 6c 69 |ector,. | MP_li|
|00003f30| 6e 65 74 79 70 65 2c 20 | 4d 50 5f 70 75 74 5f 74 |netype, |MP_put_t|
|00003f40| 65 78 74 2c 20 4d 50 5f | 74 65 78 74 5f 61 6e 67 |ext, MP_|text_ang|
|00003f50| 6c 65 2c 0a 20 20 20 20 | 4d 50 5f 6a 75 73 74 69 |le,. |MP_justi|
|00003f60| 66 79 5f 74 65 78 74 2c | 20 4d 50 5f 70 6f 69 6e |fy_text,| MP_poin|
|00003f70| 74 2c 20 4d 50 5f 61 72 | 72 6f 77 2c 20 4d 50 5f |t, MP_ar|row, MP_|
|00003f80| 73 65 74 5f 66 6f 6e 74 | 2c 20 4d 50 5f 70 6f 69 |set_font|, MP_poi|
|00003f90| 6e 74 73 69 7a 65 2c 0a | 20 20 20 20 30 2c 20 30 |ntsize,.| 0, 0|
|00003fa0| 2c 20 30 2c 20 4d 50 5f | 62 6f 78 66 69 6c 6c 2c |, 0, MP_|boxfill,|
|00003fb0| 20 4d 50 5f 6c 69 6e 65 | 77 69 64 74 68 0a 20 20 | MP_line|width. |
|00003fc0| 20 20 54 45 52 4d 5f 54 | 41 42 4c 45 5f 45 4e 44 | TERM_T|ABLE_END|
|00003fd0| 28 6d 70 5f 64 72 69 76 | 65 72 29 0a 23 75 6e 64 |(mp_driv|er).#und|
|00003fe0| 65 66 20 4c 41 53 54 5f | 54 45 52 4d 0a 23 64 65 |ef LAST_|TERM.#de|
|00003ff0| 66 69 6e 65 20 4c 41 53 | 54 5f 54 45 52 4d 20 6d |fine LAS|T_TERM m|
|00004000| 70 5f 64 72 69 76 65 72 | 0a 0a 23 65 6e 64 69 66 |p_driver|..#endif|
|00004010| 20 2f 2a 20 54 45 52 4d | 5f 54 41 42 4c 45 20 2a | /* TERM|_TABLE *|
|00004020| 2f 0a 23 65 6e 64 69 66 | 20 2f 2a 20 54 45 52 4d |/.#endif| /* TERM|
|00004030| 5f 50 52 4f 54 4f 5f 4f | 4e 4c 59 20 2a 2f 0a 0a |_PROTO_O|NLY */..|
|00004040| 23 69 66 64 65 66 20 54 | 45 52 4d 5f 48 45 4c 50 |#ifdef T|ERM_HELP|
|00004050| 0a 53 54 41 52 54 5f 48 | 45 4c 50 28 6d 70 29 0a |.START_H|ELP(mp).|
|00004060| 22 31 20 6d 70 22 2c 0a | 22 3f 63 6f 6d 6d 61 6e |"1 mp",.|"?comman|
|00004070| 64 73 20 73 65 74 20 74 | 65 72 6d 69 6e 61 6c 20 |ds set t|erminal |
|00004080| 6d 70 6f 73 74 22 2c 0a | 22 3f 73 65 74 20 74 65 |mpost",.|"?set te|
|00004090| 72 6d 69 6e 61 6c 20 6d | 70 22 2c 0a 22 3f 73 65 |rminal m|p",."?se|
|000040a0| 74 20 74 65 72 6d 20 6d | 70 22 2c 0a 22 3f 74 65 |t term m|p",."?te|
|000040b0| 72 6d 69 6e 61 6c 20 6d | 70 22 2c 0a 22 3f 74 65 |rminal m|p",."?te|
|000040c0| 72 6d 20 6d 70 22 2c 0a | 22 3f 6d 70 22 2c 0a 22 |rm mp",.|"?mp",."|
|000040d0| 3f 6d 65 74 61 70 6f 73 | 74 22 2c 0a 22 22 2c 0a |?metapos|t",."",.|
|000040e0| 22 20 54 68 65 20 60 6d | 70 60 20 64 72 69 76 65 |" The `m|p` drive|
|000040f0| 72 20 70 72 6f 64 75 63 | 65 73 20 6f 75 74 70 75 |r produc|es outpu|
|00004100| 74 20 69 6e 74 65 6e 64 | 65 64 20 74 6f 20 62 65 |t intend|ed to be|
|00004110| 20 69 6e 70 75 74 20 74 | 6f 20 74 68 65 20 4d 65 | input t|o the Me|
|00004120| 74 61 70 6f 73 74 20 70 | 72 6f 67 72 61 6d 2e 22 |tapost p|rogram."|
|00004130| 2c 0a 22 20 52 75 6e 6e | 69 6e 67 20 4d 65 74 61 |,." Runn|ing Meta|
|00004140| 70 6f 73 74 20 6f 6e 20 | 74 68 65 20 66 69 6c 65 |post on |the file|
|00004150| 20 63 72 65 61 74 65 73 | 20 45 50 53 20 66 69 6c | creates| EPS fil|
|00004160| 65 73 20 63 6f 6e 74 61 | 69 6e 69 6e 67 20 74 68 |es conta|ining th|
|00004170| 65 20 70 6c 6f 74 73 2e | 20 42 79 22 2c 0a 22 20 |e plots.| By",." |
|00004180| 64 65 66 61 75 6c 74 2c | 20 4d 65 74 61 70 6f 73 |default,| Metapos|
|00004190| 74 20 70 61 73 73 65 73 | 20 61 6c 6c 20 74 65 78 |t passes| all tex|
|000041a0| 74 20 74 68 72 6f 75 67 | 68 20 54 65 58 2e 20 20 |t throug|h TeX. |
|000041b0| 54 68 69 73 20 68 61 73 | 20 74 68 65 20 61 64 76 |This has| the adv|
|000041c0| 61 6e 74 61 67 65 20 6f | 66 22 2c 0a 22 20 61 6c |antage o|f",." al|
|000041d0| 6c 6f 77 69 6e 67 20 65 | 73 73 65 6e 74 69 61 6c |lowing e|ssential|
|000041e0| 6c 79 20 20 61 6e 79 20 | 54 65 58 20 73 79 6d 62 |ly any |TeX symb|
|000041f0| 6f 6c 73 20 69 6e 20 74 | 69 74 6c 65 73 20 61 6e |ols in t|itles an|
|00004200| 64 20 6c 61 62 65 6c 73 | 2e 22 2c 0a 22 22 2c 0a |d labels|.",."",.|
|00004210| 22 20 54 68 65 20 60 6d | 70 60 20 74 65 72 6d 69 |" The `m|p` termi|
|00004220| 6e 61 6c 20 69 73 20 73 | 65 6c 65 63 74 65 64 20 |nal is s|elected |
|00004230| 77 69 74 68 20 61 20 63 | 6f 6d 6d 61 6e 64 20 6f |with a c|ommand o|
|00004240| 66 20 74 68 65 20 66 6f | 72 6d 22 2c 0a 22 20 20 |f the fo|rm",." |
|00004250| 20 20 73 65 74 20 74 65 | 72 6d 20 6d 70 20 7b 63 | set te|rm mp {c|
|00004260| 6f 6c 6f 72 7d 20 7b 73 | 6f 6c 69 64 7d 20 7b 6e |olor} {s|olid} {n|
|00004270| 6f 74 65 78 7d 20 7b 6d | 61 67 20 3c 6d 61 67 73 |otex} {m|ag <mags|
|00004280| 69 7a 65 3e 7d 20 7b 5c | 22 3c 6e 61 6d 65 3e 5c |ize>} {\|"<name>\|
|00004290| 22 7d 20 7b 3c 73 69 7a | 65 3e 7d 22 2c 0a 22 20 |"} {<siz|e>}",." |
|000042a0| 54 68 65 20 6f 70 74 69 | 6f 6e 20 60 63 6f 6c 6f |The opti|on `colo|
|000042b0| 72 60 20 63 61 75 73 65 | 73 20 6c 69 6e 65 73 20 |r` cause|s lines |
|000042c0| 74 6f 20 62 65 20 64 72 | 61 77 6e 20 69 6e 20 63 |to be dr|awn in c|
|000042d0| 6f 6c 6f 72 20 28 6f 6e | 20 61 20 70 72 69 6e 74 |olor (on| a print|
|000042e0| 65 72 20 6f 72 20 64 69 | 73 70 6c 61 79 22 2c 0a |er or di|splay",.|
|000042f0| 22 20 74 68 61 74 20 73 | 75 70 70 6f 72 74 73 20 |" that s|upports |
|00004300| 69 74 29 2c 20 60 6d 6f | 6e 6f 63 68 72 6f 6d 65 |it), `mo|nochrome|
|00004310| 60 20 28 6f 72 20 6e 6f | 74 68 69 6e 67 29 20 73 |` (or no|thing) s|
|00004320| 65 6c 65 63 74 73 20 62 | 6c 61 63 6b 20 6c 69 6e |elects b|lack lin|
|00004330| 65 73 2e 20 20 54 68 65 | 20 6f 70 74 69 6f 6e 22 |es. The| option"|
|00004340| 2c 0a 22 20 60 73 6f 6c | 69 64 60 20 64 72 61 77 |,." `sol|id` draw|
|00004350| 73 20 73 6f 6c 69 64 20 | 6c 69 6e 65 73 2c 20 77 |s solid |lines, w|
|00004360| 68 69 6c 65 20 60 64 61 | 73 68 65 64 60 20 28 6f |hile `da|shed` (o|
|00004370| 72 20 6e 6f 74 68 69 6e | 67 29 20 73 65 6c 65 63 |r nothin|g) selec|
|00004380| 74 73 20 6c 69 6e 65 73 | 20 77 69 74 68 22 2c 0a |ts lines| with",.|
|00004390| 22 20 64 69 66 66 65 72 | 65 6e 74 20 70 61 74 74 |" differ|ent patt|
|000043a0| 65 72 6e 73 20 6f 66 20 | 64 61 73 68 65 73 2e 20 |erns of |dashes. |
|000043b0| 20 49 66 20 60 73 6f 6c | 69 64 60 20 69 73 20 73 | If `sol|id` is s|
|000043c0| 65 6c 65 63 74 65 64 20 | 62 75 74 20 60 63 6f 6c |elected |but `col|
|000043d0| 6f 72 60 20 69 73 20 6e | 6f 74 2c 22 2c 0a 22 20 |or` is n|ot,",." |
|000043e0| 6e 65 61 72 6c 79 20 61 | 6c 6c 20 6c 69 6e 65 73 |nearly a|ll lines|
|000043f0| 20 77 69 6c 6c 20 62 65 | 20 69 64 65 6e 74 69 63 | will be| identic|
|00004400| 61 6c 2e 20 20 54 68 69 | 73 20 6d 61 79 20 6f 63 |al. Thi|s may oc|
|00004410| 63 61 73 69 6f 6e 61 6c | 6c 79 20 62 65 20 75 73 |casional|ly be us|
|00004420| 65 66 75 6c 2c 20 73 6f | 20 69 74 20 69 73 22 2c |eful, so| it is",|
|00004430| 0a 22 20 61 6c 6c 6f 77 | 65 64 2e 22 2c 0a 22 22 |." allow|ed.",.""|
|00004440| 2c 0a 22 20 54 68 65 20 | 6f 70 74 69 6f 6e 20 60 |,." The |option `|
|00004450| 6e 6f 74 65 78 60 20 62 | 79 70 61 73 73 65 73 20 |notex` b|ypasses |
|00004460| 54 65 58 20 65 6e 74 69 | 72 65 6c 79 2c 20 74 68 |TeX enti|rely, th|
|00004470| 65 72 65 66 6f 72 65 20 | 6e 6f 20 54 65 58 20 63 |erefore |no TeX c|
|00004480| 6f 64 65 20 63 61 6e 20 | 62 65 20 75 73 65 64 20 |ode can |be used |
|00004490| 69 6e 22 2c 0a 22 20 6c | 61 62 65 6c 73 20 75 6e |in",." l|abels un|
|000044a0| 64 65 72 20 74 68 69 73 | 20 6f 70 74 69 6f 6e 2e |der this| option.|
|000044b0| 20 20 54 68 69 73 20 69 | 73 20 69 6e 74 65 6e 64 | This i|s intend|
|000044c0| 65 64 20 66 6f 72 20 75 | 73 65 20 6f 6e 20 6f 6c |ed for u|se on ol|
|000044d0| 64 20 70 6c 6f 74 20 66 | 69 6c 65 73 20 6f 72 20 |d plot f|iles or |
|000044e0| 66 69 6c 65 73 22 2c 0a | 22 20 74 68 61 74 20 6d |files",.|" that m|
|000044f0| 61 6b 65 20 66 72 65 71 | 75 65 6e 74 20 75 73 65 |ake freq|uent use|
|00004500| 20 6f 66 20 63 6f 6d 6d | 6f 6e 20 63 68 61 72 61 | of comm|on chara|
|00004510| 63 74 65 72 73 20 6c 69 | 6b 65 20 60 24 60 20 61 |cters li|ke `$` a|
|00004520| 6e 64 20 60 25 60 20 74 | 68 61 74 20 72 65 71 75 |nd `%` t|hat requ|
|00004530| 69 72 65 22 2c 0a 22 20 | 73 70 65 63 69 61 6c 20 |ire",." |special |
|00004540| 68 61 6e 64 6c 69 6e 67 | 20 69 6e 20 54 65 58 2e |handling| in TeX.|
|00004550| 22 2c 0a 22 22 2c 0a 22 | 20 43 68 61 6e 67 69 6e |",."",."| Changin|
|00004560| 67 20 66 6f 6e 74 20 73 | 69 7a 65 73 20 69 6e 20 |g font s|izes in |
|00004570| 54 65 58 20 68 61 73 20 | 6e 6f 20 65 66 66 65 63 |TeX has |no effec|
|00004580| 74 20 6f 6e 20 74 68 65 | 20 73 69 7a 65 20 6f 66 |t on the| size of|
|00004590| 20 6d 61 74 68 65 6d 61 | 74 69 63 73 2c 20 61 6e | mathema|tics, an|
|000045a0| 64 20 74 68 65 72 65 22 | 2c 0a 22 20 69 73 20 6e |d there"|,." is n|
|000045b0| 6f 20 66 6f 6f 6c 70 72 | 6f 6f 66 20 77 61 79 20 |o foolpr|oof way |
|000045c0| 74 6f 20 6d 61 6b 65 20 | 73 75 63 68 20 61 20 63 |to make |such a c|
|000045d0| 68 61 6e 67 65 2c 20 65 | 78 63 65 70 74 20 62 79 |hange, e|xcept by|
|000045e0| 20 67 6c 6f 62 61 6c 6c | 79 20 20 73 65 74 74 69 | globall|y setti|
|000045f0| 6e 67 20 61 22 2c 0a 22 | 20 6d 61 67 6e 69 66 69 |ng a",."| magnifi|
|00004600| 63 61 74 69 6f 6e 20 66 | 61 63 74 6f 72 2e 20 54 |cation f|actor. T|
|00004610| 68 69 73 20 69 73 20 74 | 68 65 20 70 75 72 70 6f |his is t|he purpo|
|00004620| 73 65 20 6f 66 20 74 68 | 65 20 60 6d 61 67 6e 69 |se of th|e `magni|
|00004630| 66 69 63 61 74 69 6f 6e | 60 20 6f 70 74 69 6f 6e |fication|` option|
|00004640| 2e 20 49 74 22 2c 0a 22 | 20 6d 75 73 74 20 62 65 |. It",."| must be|
|00004650| 20 66 6f 6c 6c 6f 77 65 | 64 20 62 79 20 61 20 73 | followe|d by a s|
|00004660| 63 61 6c 69 6e 67 20 66 | 61 63 74 6f 72 2e 20 41 |caling f|actor. A|
|00004670| 6c 6c 20 74 65 78 74 20 | 28 4e 4f 54 20 74 68 65 |ll text |(NOT the|
|00004680| 20 67 72 61 70 68 73 29 | 20 77 69 6c 6c 20 62 65 | graphs)| will be|
|00004690| 20 73 63 61 6c 65 64 22 | 2c 0a 22 20 62 79 20 74 | scaled"|,." by t|
|000046a0| 68 69 73 20 66 61 63 74 | 6f 72 2e 20 55 73 65 20 |his fact|or. Use |
|000046b0| 74 68 69 73 20 69 66 20 | 79 6f 75 20 68 61 76 65 |this if |you have|
|000046c0| 20 6d 61 74 68 20 74 68 | 61 74 20 79 6f 75 20 77 | math th|at you w|
|000046d0| 61 6e 74 20 61 74 20 73 | 6f 6d 65 20 73 69 7a 65 |ant at s|ome size|
|000046e0| 20 6f 74 68 65 72 22 2c | 0a 22 20 74 68 61 6e 20 | other",|." than |
|000046f0| 74 68 65 20 64 65 66 61 | 75 6c 74 20 31 30 70 74 |the defa|ult 10pt|
|00004700| 2e 20 55 6e 66 6f 72 74 | 75 6e 61 74 65 6c 79 2c |. Unfort|unately,|
|00004710| 20 61 6c 6c 20 6d 61 74 | 68 20 77 69 6c 6c 20 62 | all mat|h will b|
|00004720| 65 20 74 68 65 20 73 61 | 6d 65 20 73 69 7a 65 2c |e the sa|me size,|
|00004730| 20 62 75 74 20 73 65 65 | 22 2c 0a 22 20 74 68 65 | but see|",." the|
|00004740| 20 64 69 73 63 75 73 73 | 69 6f 6e 20 62 65 6c 6f | discuss|ion belo|
|00004750| 77 20 6f 6e 20 65 64 69 | 74 69 6e 67 20 74 68 65 |w on edi|ting the|
|00004760| 20 4d 50 20 6f 75 74 70 | 75 74 2e 20 60 6d 61 67 | MP outp|ut. `mag|
|00004770| 60 20 77 69 6c 6c 20 61 | 6c 73 6f 20 77 6f 72 6b |` will a|lso work|
|00004780| 20 75 6e 64 65 72 22 2c | 0a 22 20 60 6e 6f 74 65 | under",|." `note|
|00004790| 78 60 20 62 75 74 20 74 | 68 65 72 65 20 73 65 65 |x` but t|here see|
|000047a0| 6d 73 20 6e 6f 20 70 6f | 69 6e 74 20 69 6e 20 75 |ms no po|int in u|
|000047b0| 73 69 6e 67 20 69 74 20 | 61 73 20 74 68 65 20 66 |sing it |as the f|
|000047c0| 6f 6e 74 20 73 69 7a 65 | 20 6f 70 74 69 6f 6e 20 |ont size| option |
|000047d0| 28 62 65 6c 6f 77 29 22 | 2c 0a 22 20 77 6f 72 6b |(below)"|,." work|
|000047e0| 73 20 61 73 20 77 65 6c | 6c 2e 22 2c 0a 22 22 2c |s as wel|l.",."",|
|000047f0| 0a 22 20 41 20 6e 61 6d | 65 20 69 6e 20 71 75 6f |." A nam|e in quo|
|00004800| 74 65 73 20 73 65 6c 65 | 63 74 73 20 74 68 65 20 |tes sele|cts the |
|00004810| 66 6f 6e 74 20 74 68 61 | 74 20 77 69 6c 6c 20 62 |font tha|t will b|
|00004820| 65 20 75 73 65 64 20 77 | 68 65 6e 20 6e 6f 20 65 |e used w|hen no e|
|00004830| 78 70 6c 69 63 69 74 20 | 66 6f 6e 74 20 69 73 22 |xplicit |font is"|
|00004840| 2c 0a 22 20 67 69 76 65 | 6e 20 69 6e 20 61 20 60 |,." give|n in a `|
|00004850| 73 65 74 20 6c 61 62 65 | 6c 60 20 6f 72 20 60 73 |set labe|l` or `s|
|00004860| 65 74 20 74 69 74 6c 65 | 60 2e 20 20 41 20 6e 61 |et title|`. A na|
|00004870| 6d 65 20 72 65 63 6f 67 | 6e 69 7a 65 64 20 62 79 |me recog|nized by|
|00004880| 20 54 65 58 20 28 61 20 | 54 46 4d 20 66 69 6c 65 | TeX (a |TFM file|
|00004890| 22 2c 0a 22 20 65 78 69 | 73 74 73 29 20 6d 75 73 |",." exi|sts) mus|
|000048a0| 74 20 62 65 20 75 73 65 | 64 2e 20 20 54 68 65 20 |t be use|d. The |
|000048b0| 64 65 66 61 75 6c 74 20 | 69 73 20 5c 22 63 6d 72 |default |is \"cmr|
|000048c0| 31 30 5c 22 20 75 6e 6c | 65 73 73 20 60 6e 6f 74 |10\" unl|ess `not|
|000048d0| 65 78 60 20 69 73 20 73 | 65 6c 65 63 74 65 64 2c |ex` is s|elected,|
|000048e0| 22 2c 0a 22 20 74 68 65 | 6e 20 69 74 20 69 73 20 |",." the|n it is |
|000048f0| 5c 22 70 63 72 72 38 72 | 5c 22 20 28 43 6f 75 72 |\"pcrr8r|\" (Cour|
|00004900| 69 65 72 29 2e 20 20 45 | 76 65 6e 20 75 6e 64 65 |ier). E|ven unde|
|00004910| 72 20 60 6e 6f 74 65 78 | 60 2c 20 61 20 54 46 4d |r `notex|`, a TFM|
|00004920| 20 66 69 6c 65 20 69 73 | 20 6e 65 65 64 65 64 20 | file is| needed |
|00004930| 62 79 22 2c 0a 22 20 4d | 65 74 61 70 6f 73 74 2e |by",." M|etapost.|
|00004940| 20 54 68 65 20 66 69 6c | 65 20 60 70 63 72 72 38 | The fil|e `pcrr8|
|00004950| 72 2e 74 66 6d 60 20 69 | 73 20 74 68 65 20 6e 61 |r.tfm` i|s the na|
|00004960| 6d 65 20 67 69 76 65 6e | 20 74 6f 20 43 6f 75 72 |me given| to Cour|
|00004970| 69 65 72 20 69 6e 20 4c | 61 54 65 58 27 73 20 70 |ier in L|aTeX's p|
|00004980| 73 6e 66 73 73 22 2c 0a | 22 20 70 61 63 6b 61 67 |snfss",.|" packag|
|00004990| 65 2e 20 20 49 66 20 79 | 6f 75 20 63 68 61 6e 67 |e. If y|ou chang|
|000049a0| 65 20 74 68 65 20 66 6f | 6e 74 20 66 72 6f 6d 20 |e the fo|nt from |
|000049b0| 74 68 65 20 60 6e 6f 74 | 65 78 60 20 64 65 66 61 |the `not|ex` defa|
|000049c0| 75 6c 74 2c 20 63 68 6f | 6f 73 65 20 61 20 66 6f |ult, cho|ose a fo|
|000049d0| 6e 74 20 74 68 61 74 22 | 2c 0a 22 20 6d 61 74 63 |nt that"|,." matc|
|000049e0| 68 65 73 20 74 68 65 20 | 41 53 43 49 49 20 65 6e |hes the |ASCII en|
|000049f0| 63 6f 64 69 6e 67 20 61 | 74 20 6c 65 61 73 74 20 |coding a|t least |
|00004a00| 69 6e 20 74 68 65 20 72 | 61 6e 67 65 20 33 32 2d |in the r|ange 32-|
|00004a10| 31 32 36 2e 20 20 60 63 | 6d 74 74 31 30 60 20 61 |126. `c|mtt10` a|
|00004a20| 6c 6d 6f 73 74 22 2c 0a | 22 20 77 6f 72 6b 73 2c |lmost",.|" works,|
|00004a30| 20 62 75 74 20 69 74 20 | 68 61 73 20 61 20 6e 6f | but it |has a no|
|00004a40| 6e 62 6c 61 6e 6b 20 63 | 68 61 72 61 63 74 65 72 |nblank c|haracter|
|00004a50| 20 69 6e 20 70 6f 73 69 | 74 69 6f 6e 20 33 32 20 | in posi|tion 32 |
|00004a60| 28 73 70 61 63 65 29 2e | 22 2c 0a 22 22 2c 0a 22 |(space).|",."",."|
|00004a70| 20 54 68 65 20 73 69 7a | 65 20 63 61 6e 20 62 65 | The siz|e can be|
|00004a80| 20 61 6e 79 20 6e 75 6d | 62 65 72 20 62 65 74 77 | any num|ber betw|
|00004a90| 65 65 6e 20 35 2e 30 20 | 61 6e 64 20 39 39 2e 39 |een 5.0 |and 99.9|
|00004aa0| 39 2e 20 20 49 66 20 69 | 74 20 69 73 20 6f 6d 69 |9. If i|t is omi|
|00004ab0| 74 74 65 64 2c 20 31 30 | 2e 30 20 69 73 22 2c 0a |tted, 10|.0 is",.|
|00004ac0| 22 20 75 73 65 64 2e 20 | 20 49 74 20 69 73 20 61 |" used. | It is a|
|00004ad0| 64 76 69 73 61 62 6c 65 | 20 74 6f 20 75 73 65 20 |dvisable| to use |
|00004ae0| 60 6d 61 67 73 74 65 70 | 60 20 73 69 7a 65 73 3a |`magstep|` sizes:|
|00004af0| 20 31 30 20 74 69 6d 65 | 73 20 61 6e 20 69 6e 74 | 10 time|s an int|
|00004b00| 65 67 65 72 20 6f 72 22 | 2c 0a 22 20 68 61 6c 66 |eger or"|,." half|
|00004b10| 2d 69 6e 74 65 67 65 72 | 20 70 6f 77 65 72 20 6f |-integer| power o|
|00004b20| 66 20 31 2e 32 2c 20 72 | 6f 75 6e 64 65 64 20 74 |f 1.2, r|ounded t|
|00004b30| 6f 20 74 77 6f 20 64 65 | 63 69 6d 61 6c 73 2c 20 |o two de|cimals, |
|00004b40| 62 65 63 61 75 73 65 20 | 74 68 6f 73 65 20 61 72 |because |those ar|
|00004b50| 65 20 74 68 65 20 6d 6f | 73 74 22 2c 0a 22 20 61 |e the mo|st",." a|
|00004b60| 76 61 69 6c 61 62 6c 65 | 20 73 69 7a 65 73 20 6f |vailable| sizes o|
|00004b70| 66 20 66 6f 6e 74 73 20 | 69 6e 20 54 65 58 20 73 |f fonts |in TeX s|
|00004b80| 79 73 74 65 6d 73 2e 22 | 2c 0a 22 22 2c 0a 22 20 |ystems."|,."",." |
|00004b90| 41 6c 6c 20 74 68 65 20 | 6f 70 74 69 6f 6e 73 20 |All the |options |
|00004ba0| 61 72 65 20 6f 70 74 69 | 6f 6e 61 6c 2e 20 20 49 |are opti|onal. I|
|00004bb0| 66 20 66 6f 6e 74 20 69 | 6e 66 6f 72 6d 61 74 69 |f font i|nformati|
|00004bc0| 6f 6e 20 69 73 20 67 69 | 76 65 6e 2c 20 69 74 20 |on is gi|ven, it |
|00004bd0| 6d 75 73 74 20 62 65 20 | 61 74 20 74 68 65 22 2c |must be |at the",|
|00004be0| 0a 22 20 65 6e 64 2c 20 | 77 69 74 68 20 73 69 7a |." end, |with siz|
|00004bf0| 65 20 28 69 66 20 70 72 | 65 73 65 6e 74 29 20 6c |e (if pr|esent) l|
|00004c00| 61 73 74 2e 20 20 54 68 | 65 20 73 69 7a 65 20 69 |ast. Th|e size i|
|00004c10| 73 20 6e 65 65 64 65 64 | 20 74 6f 20 73 65 6c 65 |s needed| to sele|
|00004c20| 63 74 20 61 20 73 69 7a | 65 20 66 6f 72 20 74 68 |ct a siz|e for th|
|00004c30| 65 22 2c 0a 22 20 66 6f | 6e 74 2c 20 65 76 65 6e |e",." fo|nt, even|
|00004c40| 20 69 66 20 74 68 65 20 | 66 6f 6e 74 20 6e 61 6d | if the |font nam|
|00004c50| 65 20 69 6e 63 6c 75 64 | 65 73 20 73 69 7a 65 20 |e includ|es size |
|00004c60| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 2e 20 20 46 6f |informat|ion. Fo|
|00004c70| 72 20 65 78 61 6d 70 6c | 65 2c 22 2c 0a 22 20 60 |r exampl|e,",." `|
|00004c80| 73 65 74 20 74 65 72 6d | 20 6d 70 20 5c 22 63 6d |set term| mp \"cm|
|00004c90| 74 74 31 32 5c 22 60 20 | 73 65 6c 65 63 74 73 20 |tt12\"` |selects |
|00004ca0| 63 6d 74 74 31 32 20 73 | 68 72 75 6e 6b 20 74 6f |cmtt12 s|hrunk to|
|00004cb0| 20 74 68 65 20 64 65 66 | 61 75 6c 74 20 73 69 7a | the def|ault siz|
|00004cc0| 65 20 31 30 2e 20 20 54 | 68 69 73 22 2c 0a 22 20 |e 10. T|his",." |
|00004cd0| 69 73 20 70 72 6f 62 61 | 62 6c 79 20 6e 6f 74 20 |is proba|bly not |
|00004ce0| 77 68 61 74 20 79 6f 75 | 20 77 61 6e 74 20 6f 72 |what you| want or|
|00004cf0| 20 79 6f 75 20 77 6f 75 | 6c 64 20 68 61 76 65 20 | you wou|ld have |
|00004d00| 75 73 65 64 20 63 6d 74 | 74 31 30 2e 22 2c 0a 22 |used cmt|t10.",."|
|00004d10| 22 2c 0a 22 20 54 68 65 | 20 66 6f 6c 6c 6f 77 69 |",." The| followi|
|00004d20| 6e 67 20 63 6f 6d 6d 6f | 6e 20 61 73 63 69 69 20 |ng commo|n ascii |
|00004d30| 63 68 61 72 61 63 74 65 | 72 73 20 6e 65 65 64 20 |characte|rs need |
|00004d40| 73 70 65 63 69 61 6c 20 | 74 72 65 61 74 6d 65 6e |special |treatmen|
|00004d50| 74 20 69 6e 20 54 65 58 | 3a 22 2c 0a 22 20 20 20 |t in TeX|:",." |
|00004d60| 20 24 2c 20 26 2c 20 23 | 2c 20 25 2c 20 5f 3b 20 | $, &, #|, %, _; |
|00004d70| 20 7c 2c 20 3c 2c 20 3e | 3b 20 20 5e 2c 20 7e 2c | |, <, >|; ^, ~,|
|00004d80| 20 20 5c 5c 2c 20 7b 2c | 20 61 6e 64 20 7d 22 2c | \\, {,| and }",|
|00004d90| 0a 22 20 54 68 65 20 66 | 69 76 65 20 63 68 61 72 |." The f|ive char|
|00004da0| 61 63 74 65 72 73 20 24 | 2c 20 23 2c 20 26 2c 20 |acters $|, #, &, |
|00004db0| 5f 2c 20 61 6e 64 20 25 | 20 63 61 6e 20 73 69 6d |_, and %| can sim|
|00004dc0| 70 6c 79 20 62 65 20 65 | 73 63 61 70 65 64 2c 20 |ply be e|scaped, |
|00004dd0| 65 2e 67 2e 2c 20 60 5c | 5c 24 60 2e 22 2c 0a 22 |e.g., `\|\$`.",."|
|00004de0| 20 54 68 65 20 74 68 72 | 65 65 20 63 68 61 72 61 | The thr|ee chara|
|00004df0| 63 74 65 72 73 20 3c 2c | 20 3e 2c 20 61 6e 64 20 |cters <,| >, and |
|00004e00| 7c 20 63 61 6e 20 62 65 | 20 77 72 61 70 70 65 64 || can be| wrapped|
|00004e10| 20 69 6e 20 6d 61 74 68 | 20 6d 6f 64 65 2c 20 65 | in math| mode, e|
|00004e20| 2e 67 2e 2c 20 60 24 3c | 24 60 2e 22 2c 0a 22 20 |.g., `$<|$`.",." |
|00004e30| 54 68 65 20 72 65 6d 61 | 69 6e 64 65 72 20 72 65 |The rema|inder re|
|00004e40| 71 75 69 72 65 20 73 6f | 6d 65 20 54 65 58 20 77 |quire so|me TeX w|
|00004e50| 6f 72 6b 2d 61 72 6f 75 | 6e 64 73 2e 20 20 41 6e |ork-arou|nds. An|
|00004e60| 79 20 67 6f 6f 64 20 62 | 6f 6f 6b 20 6f 6e 20 54 |y good b|ook on T|
|00004e70| 65 58 20 77 69 6c 6c 20 | 67 69 76 65 22 2c 0a 22 |eX will |give",."|
|00004e80| 20 73 6f 6d 65 20 67 75 | 69 64 61 6e 63 65 2e 22 | some gu|idance."|
|00004e90| 2c 0a 22 22 2c 0a 22 20 | 49 66 20 79 6f 75 20 74 |,."",." |If you t|
|00004ea0| 79 70 65 20 79 6f 75 72 | 20 6c 61 62 65 6c 73 20 |ype your| labels |
|00004eb0| 69 6e 73 69 64 65 20 64 | 6f 75 62 6c 65 20 71 75 |inside d|ouble qu|
|00004ec0| 6f 74 65 73 2c 20 62 61 | 63 6b 73 6c 61 73 68 65 |otes, ba|ckslashe|
|00004ed0| 73 20 69 6e 20 54 65 58 | 20 63 6f 64 65 20 6e 65 |s in TeX| code ne|
|00004ee0| 65 64 20 74 6f 22 2c 0a | 22 20 62 65 20 65 73 63 |ed to",.|" be esc|
|00004ef0| 61 70 65 64 20 28 64 6f | 75 62 6c 65 64 29 2e 20 |aped (do|ubled). |
|00004f00| 55 73 69 6e 67 20 73 69 | 6e 67 6c 65 20 71 75 6f |Using si|ngle quo|
|00004f10| 74 65 73 20 77 69 6c 6c | 20 61 76 6f 69 64 20 68 |tes will| avoid h|
|00004f20| 61 76 69 6e 67 20 74 6f | 20 64 6f 20 74 68 69 73 |aving to| do this|
|00004f30| 2c 20 62 75 74 22 2c 0a | 22 20 74 68 65 6e 20 79 |, but",.|" then y|
|00004f40| 6f 75 20 63 61 6e 6e 6f | 74 20 75 73 65 20 60 5c |ou canno|t use `\|
|00004f50| 5c 6e 60 20 66 6f 72 20 | 6c 69 6e 65 20 62 72 65 |\n` for |line bre|
|00004f60| 61 6b 73 2e 20 20 41 73 | 20 6f 66 20 74 68 69 73 |aks. As| of this|
|00004f70| 20 77 72 69 74 69 6e 67 | 2c 20 76 65 72 73 69 6f | writing|, versio|
|00004f80| 6e 20 33 2e 37 20 6f 66 | 22 2c 0a 22 20 67 6e 75 |n 3.7 of|",." gnu|
|00004f90| 70 6c 6f 74 20 70 72 6f | 63 65 73 73 65 73 73 20 |plot pro|cessess |
|00004fa0| 74 69 74 6c 65 73 20 67 | 69 76 65 6e 20 69 6e 20 |titles g|iven in |
|00004fb0| 61 20 60 70 6c 6f 74 60 | 20 63 6f 6d 6d 61 6e 64 |a `plot`| command|
|00004fc0| 20 64 69 66 66 65 72 65 | 6e 74 6c 79 20 74 68 61 | differe|ntly tha|
|00004fd0| 6e 20 69 6e 20 6f 74 68 | 65 72 22 2c 0a 22 20 70 |n in oth|er",." p|
|00004fe0| 6c 61 63 65 73 2c 20 61 | 6e 64 20 62 61 63 6b 73 |laces, a|nd backs|
|00004ff0| 6c 61 73 68 65 73 20 69 | 6e 20 54 65 58 20 63 6f |lashes i|n TeX co|
|00005000| 6d 6d 61 6e 64 73 20 6e | 65 65 64 20 74 6f 20 62 |mmands n|eed to b|
|00005010| 65 20 64 6f 75 62 6c 65 | 64 20 72 65 67 61 72 64 |e double|d regard|
|00005020| 6c 65 73 73 20 6f 66 20 | 74 68 65 22 2c 0a 22 20 |less of |the",." |
|00005030| 73 74 79 6c 65 20 6f 66 | 20 71 75 6f 74 65 73 2e |style of| quotes.|
|00005040| 22 2c 0a 22 22 2c 0a 22 | 20 4d 65 74 61 70 6f 73 |",."",."| Metapos|
|00005050| 74 20 70 69 63 74 75 72 | 65 73 20 61 72 65 20 74 |t pictur|es are t|
|00005060| 79 70 69 63 61 6c 6c 79 | 20 75 73 65 64 20 69 6e |ypically| used in|
|00005070| 20 54 65 58 20 64 6f 63 | 75 6d 65 6e 74 73 2e 20 | TeX doc|uments. |
|00005080| 20 4d 65 74 61 70 6f 73 | 74 20 64 65 61 6c 73 20 | Metapos|t deals |
|00005090| 77 69 74 68 22 2c 0a 22 | 20 66 6f 6e 74 73 20 70 |with",."| fonts p|
|000050a0| 72 65 74 74 79 20 6d 75 | 63 68 20 74 68 65 20 73 |retty mu|ch the s|
|000050b0| 61 6d 65 20 77 61 79 20 | 54 65 58 20 64 6f 65 73 |ame way |TeX does|
|000050c0| 2c 20 77 68 69 63 68 20 | 69 73 20 64 69 66 66 65 |, which |is diffe|
|000050d0| 72 65 6e 74 20 66 72 6f | 6d 20 6d 6f 73 74 20 6f |rent fro|m most o|
|000050e0| 74 68 65 72 22 2c 0a 22 | 20 64 6f 63 75 6d 65 6e |ther",."| documen|
|000050f0| 74 20 70 72 65 70 61 72 | 61 74 69 6f 6e 20 70 72 |t prepar|ation pr|
|00005100| 6f 67 72 61 6d 73 2e 20 | 20 49 66 20 74 68 65 20 |ograms. | If the |
|00005110| 70 69 63 74 75 72 65 20 | 69 73 20 69 6e 63 6c 75 |picture |is inclu|
|00005120| 64 65 64 20 69 6e 20 61 | 20 4c 61 54 65 58 20 64 |ded in a| LaTeX d|
|00005130| 6f 63 75 6d 65 6e 74 22 | 2c 0a 22 20 75 73 69 6e |ocument"|,." usin|
|00005140| 67 20 74 68 65 20 67 72 | 61 70 68 69 63 73 20 70 |g the gr|aphics p|
|00005150| 61 63 6b 61 67 65 2c 20 | 6f 72 20 69 6e 20 61 20 |ackage, |or in a |
|00005160| 70 6c 61 69 6e 54 65 58 | 20 64 6f 63 75 6d 65 6e |plainTeX| documen|
|00005170| 74 20 76 69 61 20 65 70 | 73 66 2e 74 65 78 2c 20 |t via ep|sf.tex, |
|00005180| 61 6e 64 20 74 68 65 6e | 22 2c 0a 22 20 63 6f 6e |and then|",." con|
|00005190| 76 65 72 74 65 64 20 74 | 6f 20 50 6f 73 74 53 63 |verted t|o PostSc|
|000051a0| 72 69 70 74 20 77 69 74 | 68 20 64 76 69 70 73 20 |ript wit|h dvips |
|000051b0| 28 6f 72 20 6f 74 68 65 | 72 20 64 76 69 2d 74 6f |(or othe|r dvi-to|
|000051c0| 2d 70 73 20 63 6f 6e 76 | 65 72 74 65 72 29 2c 20 |-ps conv|erter), |
|000051d0| 74 68 65 20 74 65 78 74 | 20 69 6e 22 2c 0a 22 20 |the text| in",." |
|000051e0| 74 68 65 20 70 6c 6f 74 | 20 77 69 6c 6c 20 75 73 |the plot| will us|
|000051f0| 75 61 6c 6c 79 20 62 65 | 20 68 61 6e 64 6c 65 64 |ually be| handled|
|00005200| 20 63 6f 72 72 65 63 74 | 6c 79 2e 20 20 48 6f 77 | correct|ly. How|
|00005210| 65 76 65 72 2c 20 74 68 | 65 20 74 65 78 74 20 6d |ever, th|e text m|
|00005220| 61 79 20 6e 6f 74 20 61 | 70 70 65 61 72 22 2c 0a |ay not a|ppear",.|
|00005230| 22 20 69 66 20 79 6f 75 | 20 73 65 6e 64 20 74 68 |" if you| send th|
|00005240| 65 20 4d 65 74 61 70 6f | 73 74 20 6f 75 74 70 75 |e Metapo|st outpu|
|00005250| 74 20 61 73 2d 69 73 20 | 74 6f 20 61 20 50 6f 73 |t as-is |to a Pos|
|00005260| 74 53 63 72 69 70 74 20 | 69 6e 74 65 72 70 72 65 |tScript |interpre|
|00005270| 74 65 72 2e 22 2c 0a 22 | 22 2c 0a 22 32 20 4d 65 |ter.",."|",."2 Me|
|00005280| 74 61 70 6f 73 74 20 49 | 6e 73 74 72 75 63 74 69 |tapost I|nstructi|
|00005290| 6f 6e 73 22 2c 0a 22 3f | 63 6f 6d 6d 61 6e 64 73 |ons",."?|commands|
|000052a0| 20 73 65 74 20 74 65 72 | 6d 69 6e 61 6c 20 6d 70 | set ter|minal mp|
|000052b0| 20 64 65 74 61 69 6c 65 | 64 22 2c 0a 22 3f 73 65 | detaile|d",."?se|
|000052c0| 74 20 74 65 72 6d 69 6e | 61 6c 20 6d 70 20 64 65 |t termin|al mp de|
|000052d0| 74 61 69 6c 65 64 22 2c | 0a 22 3f 73 65 74 20 74 |tailed",|."?set t|
|000052e0| 65 72 6d 20 6d 70 20 64 | 65 74 61 69 6c 65 64 22 |erm mp d|etailed"|
|000052f0| 2c 0a 22 3f 6d 70 20 64 | 65 74 61 69 6c 65 64 22 |,."?mp d|etailed"|
|00005300| 2c 0a 22 3f 6d 65 74 61 | 70 6f 73 74 20 64 65 74 |,."?meta|post det|
|00005310| 61 69 6c 65 64 22 2c 0a | 22 22 2c 0a 22 20 2d 20 |ailed",.|"",." - |
|00005320| 53 65 74 20 79 6f 75 72 | 20 74 65 72 6d 69 6e 61 |Set your| termina|
|00005330| 6c 20 74 6f 20 4d 65 74 | 61 70 6f 73 74 2c 20 65 |l to Met|apost, e|
|00005340| 2e 67 2e 3a 22 2c 0a 22 | 20 20 20 20 73 65 74 20 |.g.:",."| set |
|00005350| 74 65 72 6d 69 6e 61 6c | 20 6d 70 20 6d 6f 6e 6f |terminal| mp mono|
|00005360| 20 5c 22 63 6d 74 74 31 | 32 5c 22 20 31 32 22 2c | \"cmtt1|2\" 12",|
|00005370| 0a 22 22 2c 0a 22 20 2d | 20 53 65 6c 65 63 74 20 |."",." -| Select |
|00005380| 61 6e 20 6f 75 74 70 75 | 74 2d 66 69 6c 65 2c 20 |an outpu|t-file, |
|00005390| 65 2e 67 2e 3a 22 2c 0a | 22 20 20 20 20 73 65 74 |e.g.:",.|" set|
|000053a0| 20 6f 75 74 70 75 74 20 | 5c 22 66 69 67 75 72 65 | output |\"figure|
|000053b0| 2e 6d 70 5c 22 22 2c 0a | 22 22 2c 0a 22 20 2d 20 |.mp\"",.|"",." - |
|000053c0| 43 72 65 61 74 65 20 79 | 6f 75 72 20 70 69 63 74 |Create y|our pict|
|000053d0| 75 72 65 73 2e 20 20 45 | 61 63 68 20 70 6c 6f 74 |ures. E|ach plot|
|000053e0| 20 28 6f 72 20 6d 75 6c | 74 69 70 6c 6f 74 20 67 | (or mul|tiplot g|
|000053f0| 72 6f 75 70 29 20 77 69 | 6c 6c 20 67 65 6e 65 72 |roup) wi|ll gener|
|00005400| 61 74 65 20 61 22 2c 0a | 22 20 73 65 70 61 72 61 |ate a",.|" separa|
|00005410| 74 65 20 4d 65 74 61 70 | 6f 73 74 20 62 65 67 69 |te Metap|ost begi|
|00005420| 6e 66 69 67 2e 2e 2e 65 | 6e 64 66 69 67 20 67 72 |nfig...e|ndfig gr|
|00005430| 6f 75 70 2e 20 20 49 74 | 73 20 64 65 66 61 75 6c |oup. It|s defaul|
|00005440| 74 20 73 69 7a 65 20 77 | 69 6c 6c 20 62 65 20 35 |t size w|ill be 5|
|00005450| 20 62 79 20 33 22 2c 0a | 22 20 69 6e 63 68 65 73 | by 3",.|" inches|
|00005460| 2e 20 20 59 6f 75 20 63 | 61 6e 20 63 68 61 6e 67 |. You c|an chang|
|00005470| 65 20 74 68 65 20 73 69 | 7a 65 20 62 79 20 73 61 |e the si|ze by sa|
|00005480| 79 69 6e 67 20 60 73 65 | 74 20 73 69 7a 65 20 30 |ying `se|t size 0|
|00005490| 2e 35 2c 30 2e 35 60 20 | 6f 72 20 77 68 61 74 65 |.5,0.5` |or whate|
|000054a0| 76 65 72 22 2c 0a 22 20 | 66 72 61 63 74 69 6f 6e |ver",." |fraction|
|000054b0| 20 6f 66 20 74 68 65 20 | 64 65 66 61 75 6c 74 20 | of the |default |
|000054c0| 73 69 7a 65 20 79 6f 75 | 20 77 61 6e 74 20 74 6f |size you| want to|
|000054d0| 20 68 61 76 65 2e 22 2c | 0a 22 22 2c 0a 22 20 2d | have.",|."",." -|
|000054e0| 20 51 75 69 74 20 67 6e | 75 70 6c 6f 74 2e 22 2c | Quit gn|uplot.",|
|000054f0| 0a 22 22 2c 0a 22 20 2d | 20 47 65 6e 65 72 61 74 |."",." -| Generat|
|00005500| 65 20 45 50 53 20 66 69 | 6c 65 73 20 62 79 20 72 |e EPS fi|les by r|
|00005510| 75 6e 6e 69 6e 67 20 4d | 65 74 61 70 6f 73 74 20 |unning M|etapost |
|00005520| 6f 6e 20 74 68 65 20 6f | 75 74 70 75 74 20 6f 66 |on the o|utput of|
|00005530| 20 67 6e 75 70 6c 6f 74 | 3a 22 2c 0a 22 20 20 20 | gnuplot|:",." |
|00005540| 20 6d 70 6f 73 74 20 66 | 69 67 75 72 65 2e 6d 70 | mpost f|igure.mp|
|00005550| 20 20 4f 52 20 20 6d 70 | 20 66 69 67 75 72 65 2e | OR mp| figure.|
|00005560| 6d 70 22 2c 0a 22 20 54 | 68 65 20 6e 61 6d 65 20 |mp",." T|he name |
|00005570| 6f 66 20 74 68 65 20 4d | 65 74 61 70 6f 73 74 20 |of the M|etapost |
|00005580| 70 72 6f 67 72 61 6d 20 | 64 65 70 65 6e 64 73 20 |program |depends |
|00005590| 6f 6e 20 74 68 65 20 73 | 79 73 74 65 6d 2c 20 74 |on the s|ystem, t|
|000055a0| 79 70 69 63 61 6c 6c 79 | 20 60 6d 70 6f 73 74 60 |ypically| `mpost`|
|000055b0| 20 66 6f 72 22 2c 0a 22 | 20 61 20 55 6e 69 78 20 | for",."| a Unix |
|000055c0| 6d 61 63 68 69 6e 65 20 | 61 6e 64 20 60 6d 70 60 |machine |and `mp`|
|000055d0| 20 6f 6e 20 6d 61 6e 79 | 20 6f 74 68 65 72 73 2e | on many| others.|
|000055e0| 20 20 4d 65 74 61 70 6f | 73 74 20 77 69 6c 6c 20 | Metapo|st will |
|000055f0| 67 65 6e 65 72 61 74 65 | 20 6f 6e 65 20 45 50 53 |generate| one EPS|
|00005600| 20 66 69 6c 65 22 2c 0a | 22 20 66 6f 72 20 65 61 | file",.|" for ea|
|00005610| 63 68 20 70 69 63 74 75 | 72 65 2e 22 2c 0a 22 22 |ch pictu|re.",.""|
|00005620| 2c 0a 22 20 2d 20 54 6f | 20 69 6e 63 6c 75 64 65 |,." - To| include|
|00005630| 20 79 6f 75 72 20 70 69 | 63 74 75 72 65 73 20 69 | your pi|ctures i|
|00005640| 6e 20 79 6f 75 72 20 64 | 6f 63 75 6d 65 6e 74 20 |n your d|ocument |
|00005650| 79 6f 75 20 63 61 6e 20 | 75 73 65 20 74 68 65 20 |you can |use the |
|00005660| 67 72 61 70 68 69 63 73 | 20 70 61 63 6b 61 67 65 |graphics| package|
|00005670| 22 2c 0a 22 20 69 6e 20 | 4c 61 54 65 58 20 6f 72 |",." in |LaTeX or|
|00005680| 20 65 70 73 66 2e 74 65 | 78 20 69 6e 20 70 6c 61 | epsf.te|x in pla|
|00005690| 69 6e 54 65 58 3a 22 2c | 0a 22 20 20 20 20 5c 5c |inTeX:",|." \\|
|000056a0| 75 73 65 70 61 63 6b 61 | 67 65 7b 67 72 61 70 68 |usepacka|ge{graph|
|000056b0| 69 63 73 7d 20 25 20 4c | 61 54 65 58 22 2c 0a 22 |ics} % L|aTeX",."|
|000056c0| 20 20 20 20 5c 5c 69 6e | 70 75 74 20 65 70 73 66 | \\in|put epsf|
|000056d0| 2e 74 65 78 20 20 20 20 | 20 20 20 25 20 70 6c 61 |.tex | % pla|
|000056e0| 69 6e 54 65 58 22 2c 0a | 22 20 49 66 20 79 6f 75 |inTeX",.|" If you|
|000056f0| 20 75 73 65 20 61 20 64 | 72 69 76 65 72 20 6f 74 | use a d|river ot|
|00005700| 68 65 72 20 74 68 61 6e | 20 64 76 69 70 73 20 66 |her than| dvips f|
|00005710| 6f 72 20 63 6f 6e 76 65 | 72 74 69 6e 67 20 54 65 |or conve|rting Te|
|00005720| 58 20 44 56 49 20 6f 75 | 74 70 75 74 20 74 6f 20 |X DVI ou|tput to |
|00005730| 50 53 2c 20 79 6f 75 22 | 2c 0a 22 20 6d 61 79 20 |PS, you"|,." may |
|00005740| 6e 65 65 64 20 74 6f 20 | 61 64 64 20 74 68 65 20 |need to |add the |
|00005750| 66 6f 6c 6c 6f 77 69 6e | 67 20 6c 69 6e 65 20 69 |followin|g line i|
|00005760| 6e 20 79 6f 75 72 20 4c | 61 54 65 58 20 64 6f 63 |n your L|aTeX doc|
|00005770| 75 6d 65 6e 74 3a 22 2c | 0a 22 20 20 20 20 5c 5c |ument:",|." \\|
|00005780| 44 65 63 6c 61 72 65 47 | 72 61 70 68 69 63 73 52 |DeclareG|raphicsR|
|00005790| 75 6c 65 7b 2a 7d 7b 65 | 70 73 7d 7b 2a 7d 7b 7d |ule{*}{e|ps}{*}{}|
|000057a0| 22 2c 0a 22 20 45 61 63 | 68 20 70 69 63 74 75 72 |",." Eac|h pictur|
|000057b0| 65 20 79 6f 75 20 6d 61 | 64 65 20 69 73 20 69 6e |e you ma|de is in|
|000057c0| 20 61 20 73 65 70 61 72 | 61 74 65 20 66 69 6c 65 | a separ|ate file|
|000057d0| 2e 20 20 54 68 65 20 66 | 69 72 73 74 20 70 69 63 |. The f|irst pic|
|000057e0| 74 75 72 65 20 69 73 20 | 69 6e 2c 20 65 2e 67 2e |ture is |in, e.g.|
|000057f0| 2c 22 2c 0a 22 20 66 69 | 67 75 72 65 2e 30 2c 20 |,",." fi|gure.0, |
|00005800| 74 68 65 20 73 65 63 6f | 6e 64 20 69 6e 20 66 69 |the seco|nd in fi|
|00005810| 67 75 72 65 2e 31 2c 20 | 61 6e 64 20 73 6f 20 6f |gure.1, |and so o|
|00005820| 6e 2e 2e 2e 2e 20 20 54 | 6f 20 70 6c 61 63 65 20 |n.... T|o place |
|00005830| 74 68 65 20 74 68 69 72 | 64 20 70 69 63 74 75 72 |the thir|d pictur|
|00005840| 65 20 69 6e 22 2c 0a 22 | 20 79 6f 75 72 20 64 6f |e in",."| your do|
|00005850| 63 75 6d 65 6e 74 2c 20 | 66 6f 72 20 65 78 61 6d |cument, |for exam|
|00005860| 70 6c 65 2c 20 61 6c 6c | 20 79 6f 75 20 68 61 76 |ple, all| you hav|
|00005870| 65 20 74 6f 20 64 6f 20 | 69 73 3a 22 2c 0a 22 20 |e to do |is:",." |
|00005880| 20 20 20 5c 5c 69 6e 63 | 6c 75 64 65 67 72 61 70 | \\inc|ludegrap|
|00005890| 68 69 63 73 7b 66 69 67 | 75 72 65 2e 32 7d 20 25 |hics{fig|ure.2} %|
|000058a0| 20 4c 61 54 65 58 22 2c | 0a 22 20 20 20 20 5c 5c | LaTeX",|." \\|
|000058b0| 65 70 73 66 62 6f 78 7b | 66 69 67 75 72 65 2e 32 |epsfbox{|figure.2|
|000058c0| 7d 20 20 20 20 20 20 20 | 20 20 25 20 70 6c 61 69 |} | % plai|
|000058d0| 6e 54 65 58 22 2c 0a 22 | 22 2c 0a 22 20 54 68 65 |nTeX",."|",." The|
|000058e0| 20 61 64 76 61 6e 74 61 | 67 65 2c 20 69 66 20 61 | advanta|ge, if a|
|000058f0| 6e 79 2c 20 6f 66 20 74 | 68 65 20 6d 70 20 74 65 |ny, of t|he mp te|
|00005900| 72 6d 69 6e 61 6c 20 6f | 76 65 72 20 61 20 70 6f |rminal o|ver a po|
|00005910| 73 74 73 63 72 69 70 74 | 20 74 65 72 6d 69 6e 61 |stscript| termina|
|00005920| 6c 20 69 73 22 2c 0a 22 | 20 65 64 69 74 61 62 6c |l is",."| editabl|
|00005930| 65 20 6f 75 74 70 75 74 | 2e 20 20 43 6f 6e 73 69 |e output|. Consi|
|00005940| 64 65 72 61 62 6c 65 20 | 65 66 66 6f 72 74 20 77 |derable |effort w|
|00005950| 65 6e 74 20 69 6e 74 6f | 20 6d 61 6b 69 6e 67 20 |ent into| making |
|00005960| 74 68 69 73 20 6f 75 74 | 70 75 74 20 61 73 20 63 |this out|put as c|
|00005970| 6c 65 61 6e 20 61 73 22 | 2c 0a 22 20 70 6f 73 73 |lean as"|,." poss|
|00005980| 69 62 6c 65 2e 20 20 46 | 6f 72 20 74 68 6f 73 65 |ible. F|or those|
|00005990| 20 6b 6e 6f 77 6c 65 64 | 67 65 61 62 6c 65 20 69 | knowled|geable i|
|000059a0| 6e 20 74 68 65 20 4d 65 | 74 61 70 6f 73 74 20 6c |n the Me|tapost l|
|000059b0| 61 6e 67 75 61 67 65 2c | 20 74 68 65 20 64 65 66 |anguage,| the def|
|000059c0| 61 75 6c 74 20 6c 69 6e | 65 22 2c 0a 22 20 74 79 |ault lin|e",." ty|
|000059d0| 70 65 73 20 61 6e 64 20 | 63 6f 6c 6f 72 73 20 63 |pes and |colors c|
|000059e0| 61 6e 20 62 65 20 63 68 | 61 6e 67 65 64 20 62 79 |an be ch|anged by|
|000059f0| 20 65 64 69 74 69 6e 67 | 20 74 68 65 20 61 72 72 | editing| the arr|
|00005a00| 61 79 73 20 60 6c 74 5b | 5d 60 20 61 6e 64 20 60 |ays `lt[|]` and `|
|00005a10| 63 6f 6c 5b 5d 60 2e 22 | 2c 0a 22 20 54 68 65 20 |col[]`."|,." The |
|00005a20| 63 68 6f 69 63 65 20 6f | 66 20 73 6f 6c 69 64 20 |choice o|f solid |
|00005a30| 76 73 20 64 61 73 68 65 | 64 20 6c 69 6e 65 73 2c |vs dashe|d lines,|
|00005a40| 20 61 6e 64 20 63 6f 6c | 6f 72 20 76 73 20 62 6c | and col|or vs bl|
|00005a50| 61 63 6b 20 6c 69 6e 65 | 73 20 63 61 6e 20 62 65 |ack line|s can be|
|00005a60| 20 63 68 61 6e 67 65 20 | 62 79 22 2c 0a 22 20 63 | change |by",." c|
|00005a70| 68 61 6e 67 69 6e 67 20 | 74 68 65 20 76 61 6c 75 |hanging |the valu|
|00005a80| 65 73 20 61 73 73 69 67 | 6e 65 64 20 74 6f 20 74 |es assig|ned to t|
|00005a90| 68 65 20 62 6f 6f 6c 65 | 61 6e 73 20 60 64 61 73 |he boole|ans `das|
|00005aa0| 68 65 64 6c 69 6e 65 73 | 60 20 61 6e 64 20 60 63 |hedlines|` and `c|
|00005ab0| 6f 6c 6f 72 6c 69 6e 65 | 73 60 2e 22 2c 0a 22 20 |olorline|s`.",." |
|00005ac0| 49 66 20 74 68 65 20 64 | 65 66 61 75 6c 74 20 60 |If the d|efault `|
|00005ad0| 74 65 78 60 20 6f 70 74 | 69 6f 6e 20 77 61 73 20 |tex` opt|ion was |
|00005ae0| 69 6e 20 65 66 66 65 63 | 74 2c 20 67 6c 6f 62 61 |in effec|t, globa|
|00005af0| 6c 20 63 68 61 6e 67 65 | 73 20 74 6f 20 74 68 65 |l change|s to the|
|00005b00| 20 74 65 78 74 20 6f 66 | 22 2c 0a 22 20 6c 61 62 | text of|",." lab|
|00005b10| 65 6c 73 20 63 61 6e 20 | 62 65 20 61 63 68 69 65 |els can |be achie|
|00005b20| 76 65 64 20 62 79 20 65 | 64 69 74 69 6e 67 20 74 |ved by e|diting t|
|00005b30| 68 65 20 60 76 65 62 61 | 74 69 6d 74 65 78 2e 2e |he `veba|timtex..|
|00005b40| 2e 65 74 65 78 60 20 62 | 6c 6f 63 6b 2e 20 20 49 |.etex` b|lock. I|
|00005b50| 6e 22 2c 0a 22 20 70 61 | 72 74 69 63 75 6c 61 72 |n",." pa|rticular|
|00005b60| 2c 20 61 20 4c 61 54 65 | 58 20 70 72 65 61 6d 62 |, a LaTe|X preamb|
|00005b70| 6c 65 20 63 61 6e 20 62 | 65 20 61 64 64 65 64 20 |le can b|e added |
|00005b80| 69 66 20 64 65 73 69 72 | 65 64 2c 20 61 6e 64 20 |if desir|ed, and |
|00005b90| 74 68 65 6e 20 4c 61 54 | 65 58 27 73 22 2c 0a 22 |then LaT|eX's",."|
|00005ba0| 20 62 75 69 6c 74 2d 69 | 6e 20 73 69 7a 65 20 63 | built-i|n size c|
|00005bb0| 68 61 6e 67 69 6e 67 20 | 63 6f 6d 6d 61 6e 64 73 |hanging |commands|
|00005bc0| 20 63 61 6e 20 62 65 20 | 75 73 65 64 20 66 6f 72 | can be |used for|
|00005bd0| 20 6d 61 78 69 6d 75 6d | 20 66 6c 65 78 69 62 69 | maximum| flexibi|
|00005be0| 6c 69 74 79 2e 20 42 65 | 20 73 75 72 65 22 2c 0a |lity. Be| sure",.|
|00005bf0| 22 20 74 6f 20 73 65 74 | 20 74 68 65 20 61 70 70 |" to set| the app|
|00005c00| 72 6f 70 72 69 61 74 65 | 20 4d 50 20 63 6f 6e 66 |ropriate| MP conf|
|00005c10| 69 67 75 72 61 74 69 6f | 6e 20 76 61 72 69 61 62 |iguratio|n variab|
|00005c20| 6c 65 20 74 6f 20 66 6f | 72 63 65 20 4d 65 74 61 |le to fo|rce Meta|
|00005c30| 70 6f 73 74 20 74 6f 20 | 72 75 6e 22 2c 0a 22 20 |post to |run",." |
|00005c40| 4c 61 54 65 58 20 69 6e | 73 74 65 61 64 20 6f 66 |LaTeX in|stead of|
|00005c50| 20 70 6c 61 69 6e 54 65 | 58 2e 22 0a 45 4e 44 5f | plainTe|X.".END_|
|00005c60| 48 45 4c 50 28 6d 70 29 | 0a 23 65 6e 64 69 66 20 |HELP(mp)|.#endif |
|00005c70| 2f 2a 20 54 45 52 4d 5f | 48 45 4c 50 20 2a 2f 0a |/* TERM_|HELP */.|
+--------+-------------------------+-------------------------+--------+--------+